Comments (7)
Are we using the methods shown in https://svelte.dev/tutorial/custom-stores such as set
?
from haruneko.
No, we're using nwjs maximize function that should handle such case by itself.
So this is a nwjs issue, but it probably means that something is missing for MacOS (an app id?)
from haruneko.
I attach some lines of interest
haruneko/src/frontend/classic/Frontend.ts
Line 12 in a0641d4
haruneko/src/frontend/classic/components/AppBar.svelte
Lines 23 to 27 in 5732218
Maybe
winMaximized
is not set to true
for the MacOS case as this last complex condition is not met as expected?from haruneko.
winMaximized is only here for the button action change
See
from haruneko.
on windows winMaximized is struggling when moving the window from a 1080p to a 4K screen. Could be related
from haruneko.
Possible issue with equality as the pixel ratio is not the same. There could be an error marging
(still investigating)
from haruneko.
For me (macOS M1 2020) I have no problem with maximized on start detection (on dev and prod), the issue I have is that winMaximized
is not updated correctly. So I can only maximize
or restore
the app once, after that I'm blocked. The code is here :
function updateWindowState() {
winMaximized =
window.outerWidth >= screen.availWidth &&
window.outerHeight >= screen.availHeight &&
window.screenTop <= screen['availTop'] &&
window.screenLeft <= screen['availLeft'];
}
The problem is that the window
object is not updated inside the resize
event listener, so winMaximized
is never updated. I try getting the window
object from the UIEvent
but it's the same issue.
The only way to fix is to use nw.Window.get()
. But since we wrap this inside the IWindowController
, the clean way is to update this interface. So I prefer to ask first before I made any change.
Can you use the maximize button more than once on other platforms ?
from haruneko.
Related Issues (20)
- Add file OremangaNet.mjs but not woking HOT 1
- Stuck in chapter fetching until timeout (recaptcha)
- (Feature Request) Context menu options in items pane HOT 2
- No Indicator chapters status in items pane HOT 1
- Mouse pointer is flickering HOT 1
- Better PDF/CBR/CBZ/EPUB generation ? HOT 5
- Image spacing in Viewer HOT 2
- Chapter file format HOT 2
- [NWjs] Window drag no longer working HOT 4
- Problem connecting to sites HOT 6
- Novels: how to handle them ?
- add download chapter as pdf HOT 1
- application is not opening on linux mint HOT 8
- Migration of mangas HOT 2
- There is an error when opening the website HOT 1
- (Site request) comicfans HOT 1
- Manual updating of source URL HOT 7
- Error with QUIC protocol?
- Downloaded chapters still show download icon HOT 3
- NW & Electron Limitations
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 haruneko.