Skip to content
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

Add window height as an option under Settings #785

Closed
5 of 8 tasks
gitressa opened this issue Nov 18, 2019 · 13 comments
Closed
5 of 8 tasks

Add window height as an option under Settings #785

gitressa opened this issue Nov 18, 2019 · 13 comments
Labels
enhancement New feature or request fixed issue has been addressed

Comments

@gitressa
Copy link

gitressa commented Nov 18, 2019

Prerequisites

  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
    • Your issue may already be reported.
  • I tried to reproduce the issue when...
    • uBlock Origin is the only extension
    • uBlock Origin with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uBlock Origin
  • I checked the documentation to understand that the issue I report is not a normal behavior

Description

Sometimes there are quite a few third-party scripts from many domains on a web site. After clicking the uBlock Origin icon It would be great to be able to see the entire list of domains, without having to scroll.

Possible solutions

  1. Make the window taller directly in the code
  2. Allow the window to auto-grow to a certain height
  3. Add window height as an option under Settings

A specific URL where the issue occurs

https://www.nbc.com/

nbc-ublock-window

Steps to Reproduce

  1. Go to https://www.nbc.com/
  2. Click the uBlock Origin icon
  3. See that the list of domains extends below the window

Expected behavior:

All domains should be visible.

Actual behavior:

Only the first ten domains are visible.

Your environment

  • uBlock Origin version: uBlock Origin 1.23.0
  • Browser Name and version: Firefox 70
  • Operating System and version: Ubuntu 18.04
@gorhill gorhill added the declined declined label Nov 18, 2019
@gorhill
Copy link
Member

gorhill commented Nov 18, 2019

All domains should be visible.

This is unrealistic to expect that all domains should be visible -- the list could very well extend offscreen, something uBO wouldn't know about and which would cripple uBO usage.

Declined.

@gorhill gorhill closed this as completed Nov 18, 2019
@gitressa
Copy link
Author

Sure, but what about adding window height as an option under Settings? Would that be complicated?

@uBlock-user uBlock-user added the enhancement New feature or request label Nov 18, 2019
@gorhill
Copy link
Member

gorhill commented Nov 18, 2019

what about adding window height as an option under Settings?

I vaguely remember somebody asking for an advanced setting for this -- is there an open issue about this? If not I will reopen this one.

@gitressa
Copy link
Author

Thanks. I mentioned it in #770 (comment), perhaps that's where?

@gorhill gorhill reopened this Nov 18, 2019
@uBlock-user uBlock-user changed the title Taller window Add window height as an option under Settings Nov 18, 2019
@uBlock-user uBlock-user removed the declined declined label Nov 18, 2019
@gwarser
Copy link

gwarser commented Apr 30, 2020

@gitressa check development build:

image


This is fixed:

Allow the window to auto-grow to a certain height

@gitressa
Copy link
Author

gitressa commented May 1, 2020

It works perfectly, thanks @gorhill and @gwarser!

It would have been extra nice if the user could define max. window height in pixels as an option under /dashboard.html#settings.html, but this is in itself a great improvement.

@gwarser
Copy link

gwarser commented May 1, 2020

This isn't perfect:

image

This happens when window is near the bottom of the screen. It opens to the top when place is very limited, but if there is just enough place it's only "trimmed".

@gwarser
Copy link

gwarser commented May 16, 2020

@gorhill this clipping of the overview panel is a problem after all https://www.reddit.com/r/uBlockOrigin/comments/gk56f9/ublock_origin_1270_with_interface_redesign_is_out/fqswhq2/

@gorhill
Copy link
Member

gorhill commented May 16, 2020

I am going to experiment to see if I can detect and adjust programmatically, maybe something like what is already being done to detect restricted width.

@gorhill
Copy link
Member

gorhill commented May 20, 2020

The only solution I see now is to provide a new advanced setting to limit the height of the firewall pane to that of the basic pane. Currently as of 1.27.4, the firewall is unconstrained, i.e. it will expand beyond the height the the basic pane when there are lots of rows.

So while testing the new advanced setting popupPanelLimitHeight, this got me second guessing: should the height be constrained by default as it was prior to 1.27.0? Advanced users can always unconstrained the height by toggling the popupPanelLimitHeight.

I can't go through all the feedback regarding the changes in 1.27.0 -- has there been specific feedback regarding the unconstrained height of the firewall pane and if so how is the general reception? Do people in general prefer the constrained height?

@gitressa
Copy link
Author

I would prefer the option of maximizing the pane to the max, utilizing as much as possible of the browser window. See for example NBC, where the complete list spans three scrolls:

  1. The arrow denotes potential, but unused space
    NBC-1
  2. Second scroll
    NBC-2
  3. Third and final scroll
    NBC-3

gorhill added a commit to gorhill/uBlock that referenced this issue May 22, 2020
New advanced setting: `popupPanelHeightMode`.
Default value: 0

Set to 1 to force the height of the firewall pane
to be no more than the height of the basic pane.

Related feedback:
- uBlockOrigin/uBlock-issues#785 (comment)
@Aybee
Copy link

Aybee commented Sep 21, 2020

I'm an HTML-Developer. With websites you can use CSS:

.popup {
  height: 100vh; /* Viewport Height */
}

or:

.popup {
  height: calc(100vh - 50px); /* calculated height */
}

You also can try to stretch the .popup so that all domains are visible but restrict it to a max height:

.popup {
  height: 100%;
  max-height: calc(100vh - 50px); /* restricted to full height minus some pixels */
}

Don't know if this also workes with the browser engine.

I also would like to have the popup all the way to the bottom of the window.

@uBlock-user uBlock-user added the fixed issue has been addressed label Jan 28, 2021
@Aybee
Copy link

Aybee commented Feb 5, 2021

Fixed? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed issue has been addressed
Projects
None yet
Development

No branches or pull requests

5 participants