-
Notifications
You must be signed in to change notification settings - Fork 132
Show warning when QR code size is too large for overflow menu #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
One can just estimate it based on the width… STR:
So what may be done here:
|
seems like Firefox overflow system breaks several add-ons, so easiest start may be just adding note in the options menu size area stating size will be limited if it is in the overflow menu. |
Because the size can be dynamically adjusted by the user/by settings in the options. "Automatically adjust" should roughly correspond to this.
I want to avoid showing such a thing when the user does not actually use the overflow menu. So some ideas I have:
This whole size thing is also related to Android. Also there, depending on the setting, the size of the QR code can be a little suboptimal… (#151) Generally, I have to admit, that this whole size handling got quite complex and we have edge cases like this one. |
Because they likely do not want to resize it each time the popup is opened. That's also why there is the "remember size" option: You can open the popup, adjust it for your screen/environment etc. and it is just restored again. I'll certainly won't remove that feature. Or what are you actually suggesting? |
Well… then you should definitively try it out. 😃
Problem I would have here is the case of tablets… There you are unlikely to want this…
That is a good idea and I am thinking about it, as I've said:
I don't know/care, it's easy to implement though if you've abstracted it once… 😊 (actually, it's not even properly tested: #177) So I cannot answer you this option.
Well… implementing this properly certainly takes work, but yes, it could eliminate several problems. Anyway, let's better discuss this in a new issue, as I like the general idea. I've summarized problems and your ideas in #187, so please let's discuss this there. This issue could be obsoleted by it, but for now, let's keep this issue a "good first issue" for a small warning. 😄 |
Well yeah, but remember I use the same for other add-on's too. So there it is potentially more useful than for a QR code generator. Anyway, that's hardly a thing we need to discuss here…
At least for trying/testing it out, you should have a look. 😃 |
https://github.com/TinyWebEx/EnvironmentDetector could help here. |
Hello, I am trying to work on this issue but it seems that I cannot exactly reproduce the situation provided in the initial screenshot (with the QR code overflowing the entire popup window). I would highly appreciate any tips/guidance in solving this issue in this case! |
Thanks a lot for trying, but indeed this is a fiddly issue, so I am likely of no much help other than: maybe try to fiddle some size difference out there. As it has been said, Firefox trying to (re)size the popup window is another fun thing you usually do not have in "normal" web design challenges. 😉 (So this also can relate to Firefox/your OS, too, further complicating it.) After all, it has a reason this has been open so much. I once implemented such stuff in the already mentioned library, but whether that helps is dubious. 🙃
Hmm, but your offsetHeight includes padding, which your screenshot also shows (purple parts), so maybe this is where your "missing" 15px are? That said, this is also not at all high prio as it is really just about an edge case. Anyway, as said, thanks for trying to help here! |
Uh oh!
There was an error while loading. Please reload this page.
When the size of the QR code is manually set or remembered, it would be good to show a warning when the maximum size (especially width, as that is fixed) of a popup window there is exceeded.
Otherwise this happens:

The text was updated successfully, but these errors were encountered: