-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Search/address bar pushes parts of the website out of the visible area of the browser window #97
Comments
So would you like it to work similarly to Chrome, so the web page always fills the screen, and the usable area increases when the address bar is hidden? I'll work on this feature over the next few days - thanks for letting me know about it :) |
Hello @CookieJarApps, I wouldn't change the current browser behaviour with showing/hiding the search/address bar when scrolling. I think it is already really good. My Idea after taking a look into the code (as said unfortunately my understanding is very limited): In the BrowserActivity.kt there is a method hideActionBar() which hides the search/address bar, and a method showActionBar() which shows the search/address bar. These two methods move the WebView up and down depending on the visibility of the search/address bar (= "ActionBar"). So I would suggest when the setting android:key="fullscreen" ("Hide URL bar while scrolling") is set to true/enabled, then keep the WebView always the same hight as if the option would still be false/disabled (in this case the WebView's height is not including the hight of the ActionBar, everything is displayed, nothing is pushed out of the screen). Plus: Try to summarize:
The behaviour "enlarge/shrink WebView's" height can already be done by the manually enable/disable "Hide URL bar while scrolling" (android:key="fullscreen") but the goal is to still be able to hide the ActionBar. Mybe the logic behind this option can be used in hideActionBar() and showActionBar() too. By resizing the WebView this way I hope it will not be noticeable to the user or disturb the user experience. Best regards |
@nabemono thank you so much for the detailed reply :) just today I had issues with the content pushed down by the navbar being hard to access. I'll make sure to fix this for the next update. |
Sorry that it's been a while - I'll just need a couple more days to add this |
Thanks for the info. As it is already a very good browser, there is no pressure. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Just to give you an update, I can fix this easily, but for some reason when WebView is resized, the open website gets a scrollbar instead of resizing. I'll see if there's some way to force the site to resize. |
Thank you for still considering this issue. |
After working on text reflow for a bit, I had an idea about this. This is the top feature on the list of things for the next update. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This was fixed ages ago in Fulguris. Possibly one of the first thing I fixed after forking from Lightning. It has to do with the layout definition and also the way the search bar animation is implemented, either or both I can't quite recall the details TBH. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Unstale |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
When webpages are loaded in SmartCookieWeb, the search/address box/bar is always visible. This seams to push parts of the website out of the visible area of the browser window if these parts are aligned to the bottom of the assumed browser windows size. The part not visible has the size of the search/address bar of SmartCookieWeb.
To Reproduce
Steps to reproduce the behavior on a mobile phone:
So I checked with RapidTables which browser window size the webpage think it is getting. In my case (mobile phone) it is 360x568. This is correct if the search/address bar is hidden. But as long as it is visible the (visible area in the) browser window it only 360x508. Because in the example Google thinks that the window has actually a height of 568, it puts the dialogue an the bottom of these 568 which results in the button becomming not accessible.
Expected behavior
No more scrolling down (and then up again) to accept dialoges or to see elements which are put on the bottom of the browser window.
So maybe the height of the search/address bar can always be substracted from the current size of the browser window when the search/address bar is visible (as webpages should mostly only care about the width of the browser window to fit and align its content).
Screenshots (reduced to 50% size)
Buttons not visible after page is loaded:
After scrolling down:
The size:
Best regards
nabemono
The text was updated successfully, but these errors were encountered: