Comments (7)
Interesting, there's also small black artefacts (looks like area under mouse wasn't properly repainted) in your gif
what operating system are you using? Is it Xorg or Wayland? is it hardware accelerated chrome? what GPU do you have? do you have any additional styles in your html file?
from qmlcore.
I can't reproduce it using official Chrome Linux build on my machine, Gentoo/Xorg/1050Ti
Version 91.0.4472.114 (Official Build) unknown (64-bit)
from qmlcore.
Both are Windows (mostly I do dev on linux server and use Windows for desktop). Happens on two machines (both Windows), with integrated Intel and Nvidia graphics.
Brave: Version 1.26.74 Chromium: 91.0.4472.124 (Official Build) (64-bit)
Chrome: Version 91.0.4472.124 (Official Build) (64-bit)
The black artifacts on the gif are a bug in the screen capture tool and aren't related to this issue.
from qmlcore.
No, there is no extra styling anywhere. The html file is the one generated from the --boilderplate option.
from qmlcore.
@tomager we had this feature request for a while (although privately).
Instead of keeping full screen rectangle anchored maybe provide background/colour to the context itself. I think this may solve all kind of problems in different html engines.
On other hand this will require adding it to native ports, but this shouldn't be a problem.
Could you do a few tests for me please?
- try do something like the following in the root item:
onCompleted: {
context.style('background-color', 'blue');
}
Then check chrome web inspector that style was actually applied and visible in tag with id qml-context-index
and try resizing it.
- Try setting this attribute directly in chrome web inspector to the
<body>
tag to see if it's working. I assume this will fix it.
from qmlcore.
Interesting, I think I managed to reproduce this issue after setting style on context div!
Could you try
--- a/platform/html5/html.js
+++ b/platform/html5/html.js
@@ -563,7 +563,7 @@ exports.init = function(ctx) {
log("Context: window size: " + w + "x" + h);
div = html.createElement(ctx, tag)
div.dom.id = divId
- win.on('resize', function() { ctx.width = win.width(); ctx.height = win.height(); });
+ win.on('resize', function() { ctx.width = win.width() + 1; ctx.height = win.height(); });
var body = html.getElement(ctx, 'body')
body.append(div);
}
I think this is rounding error in chrome somewhere
from qmlcore.
Super-- that fixes it for me. Submitted a pull request that does the height and init cases as well.
from qmlcore.
Related Issues (20)
- How can React call compiled internal components? HOT 5
- error: No module named jinja2 HOT 2
- Add PWA platform (web.pwa?) HOT 1
- Retrieve Mac Address HOT 6
- Is there a community forum to facilitate communication HOT 1
- float parsing requires leading integer in new parser HOT 1
- property type names cannot include underscores HOT 1
- How to use undefined in property expression? HOT 5
- Calling Date.now() to initialize property leads to a build error
- The '_globals.core` prefix appears HOT 1
- html5 to qml? HOT 1
- Android to desktop or web HOT 1
- I ask you how you can define an object-type variable with property? HOT 2
- Context size scaling required
- pyinotify package does not support Windows
- setup.py
- Runing the app HOT 1
- htmlTag always returns 'div' HOT 1
- component Button was not found HOT 1
- Question & Suggestion ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmlcore.