Comments (9)
I was seeing a similar issue in Linux/X11 with an intel card.
I changed the hi-dpi value in settings.json to false, and was able to avoid the issue.
"hiDPI": false,
from thdwb.
Also got this issue on Mac OS.
"hiDPI": false
makes the window a little larger but still a small portion of the total window size.
from thdwb.
my settings.json:
{
"homepage":"thdwb://homepage/",
"windowWidth": 1600,
"windowHeight": 900,
"hiDPI": false,
"experimentalHTML": false,
"experimentalLayout": false
}
from thdwb.
At least on MacOS it seems that when using hiDPI the scale is reversed. I.e. in https://github.com/danfragoso/thdwb/blob/master/mustard/window.go#L35:
window := &Window{ title: title, width: int(float32(width) / xscale), height: int(float32(height) / yscale), hiDPI: hiDPI,
it should really be:
width: int(float32(width) * xscale), height: int(float32(height) * yscale),
That makes the window content fill the window (but then it goes back to small with flicker on resize, so I think the same needs to be done wherever the window resize code is).
from thdwb.
I got this issue on Mac OS, too.
from thdwb.
@raff That seems plausible for the scale issue. The resize callback is here: https://github.com/danfragoso/thdwb/blob/master/mustard/window.go#L139
I pushed the fix to my branch if anyone cares to try it? https://github.com/ajzaff/thdwb/tree/feature-content-scale-23
FWIW hiDPI
did not work well on my chromebook even with my fix.
from thdwb.
Hi, sorry for the delay, I've been really busy with work this couple of weeks. I fixed the scaling issue on linux with commit 088ec74, can you guys try it again?
@ronangaillard @dyaskur @montyanderson @raff @bigwhite @ajzaff
from thdwb.
On my mac still has same result
from thdwb.
@dyaskur, if you applied https://github.com/ajzaff/thdwb/tree/feature-content-scale-23, make sure you have hiDPI=true in settings.json.
The fix is still not perfect (on resizes there are cases depending on the window size where the screen goes white) but mostly works.
from thdwb.
Related Issues (20)
- [Mustard] Create the widget interface
- make test 报错老哥
- Can't use thdwb as a Go library HOT 3
- img doesn't work with relative src url
- panic: runtime error: invalid memory address or nil pointer dereference HOT 3
- Assets error when running `make` HOT 9
- make: go: Command not found make: *** [Makefile:32: build_assets] Error 127 HOT 3
- i dont know i installed gccgo-go and golang and when i try to compile this happens
- and this happens when i try to do make test
- this is new
- Cannot build
- Can I use this browser as embedded?
- can't build HOT 2
- can't build HOT 1
- Error creating shader on Windows11 HOT 1
- Can't Download/Install HOT 1
- List Dependencies HOT 1
- how did u find those websites
- can you add sugar (javascript)?
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 thdwb.