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

wxGUI Add web service layer: Fix dialog layout #627

Merged

Conversation

tmszi
Copy link
Member

@tmszi tmszi commented May 12, 2020

1. Set Request page BoxSizer widget min size

To reproduce:

  1. Click on the Add web service layer (WMS, WMTS, NASA OnEarth) toolbar icon tool
  2. Choose existed predefinned profile NASA GIBS WMTS item in the Load ComboBox widget
  3. Click on the Connect button

Default dialog (Request page) layout:

web_services_dialog_default

Expected dialog (Request page) layout:

web_services_dialog_expected

2. Set Advanced request settings page ScrolledPanel widget

To reproduce:

  1. Click on the Add web service layer (WMS, WMTS, NASA OnEarth) toolbar icon tool
  2. Set this url http://gis.nature.cz/arcgis/services/Aplikace/Opendata/MapServer/WmsServer in the Server TextCtrl widget
  3. Click on the Connect button
  4. In the List of layers choose USES - koncepcni vymezeni nadregionalnich biocenter (long layer name)
  5. Switch to the Advanced request settings page

Default dialog (Advanced request settings page) layout:

web_services_dialog_default

Expected dialog (Advanced request settings page) layout:

web_services_dialog_expected

Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't actually reproduce your behavior, it looks good on my Ubuntu 18.04 (wxPython 4.0.7). I would request the change in the size computation, now it gives me fairly small window and as I suggest a fixed min size might be more straightforward.

@@ -230,6 +230,12 @@ def _requestPage(self):

self.req_page_panel.SetSizer(self.req_page_sizer)

size = list(self.req_page_sizer.GetMinSize())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems little weird, I would rather set the minimum height as fixed e.g.:

self.SetMinSize((-1, 300))

Copy link
Member Author

@tmszi tmszi May 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using Gentoo distro (4.0.7.post2 gtk3 (phoenix) wxWidgets 3.0.4) with dynamic window manager (main difference against Ubuntu distro) for X. It's work properly on Ubuntu 18.04 distro (dialog height expand to max desktop visible height). Alright, I updated it.

@tmszi tmszi force-pushed the fix_add_web_service_layer_dialog_layout branch from d0b35c7 to ec205e1 Compare May 13, 2020 04:53
@veroandreo
Copy link
Contributor

I have the same problem in fedora 31 (I get exactly the same that you show in the first screenshot) which makes it unusable because it is impossible to resize.

@petrasovaa petrasovaa merged commit 5ae98b8 into OSGeo:master May 13, 2020
@petrasovaa
Copy link
Contributor

Thanks!
Could you confirm Vero it works now for you in master?

@veroandreo
Copy link
Contributor

Thanks!
Could you confirm Vero it works now for you in master?

Yes! It works nicely now. Thanks for the fix :)

petrasovaa pushed a commit that referenced this pull request May 13, 2020
* wxGUI AddWSDialog: set Advanced request settings page ScrolledPanel widget

* wxGUI AddWSDialog: set WSPanel widget min size
@tmszi tmszi deleted the fix_add_web_service_layer_dialog_layout branch July 28, 2020 07:09
@neteler neteler added this to the 8.0.0 milestone Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants