After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 695222 - window changes size
window changes size
Status: RESOLVED FIXED
Product: gnome-weather
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Weather Maintainer(s)
GNOME Weather Maintainer(s)
3.10
: 695763 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-03-05 15:08 UTC by William Jon McCann
Modified: 2013-08-20 15:47 UTC
See Also:
GNOME target: 3.10
GNOME version: ---


Attachments
city: overlay the side bar rather than pushing the content (5.27 KB, patch)
2013-08-18 16:08 UTC, Giovanni Campagna
none Details | Review

Description William Jon McCann 2013-03-05 15:08:26 UTC
The window changes size the first time I click a location from the overview. Then it changes size again when I click the < arrow.
Comment 1 Giovanni Campagna 2013-03-05 15:46:57 UTC
The window will naturally become bigger when the size request cannot be satisfied.

Two approaches here:
- Make the window big enough by default, so that it doesn't usually need to resize.
  The problem is, we don't know the size request until we attempt to build one city view (it depends on the number of forecasts returned by the upstream service and the length of the strings).
  Also, if you add the sidebar to the math, you end up with a very short and wide window.

- Relayout the widgets so that we don't need to resize.
Comment 2 Giovanni Campagna 2013-08-18 16:08:26 UTC
Created attachment 252132 [details] [review]
city: overlay the side bar rather than pushing the content

Pushing the content when opening the side bar has the odd effect
that the window expands in the opposite direction (as the content
cannot shrink anymore).

This is a simple trick that was proposed by rishi the other day.
It has its own downsides (as the sidebar can partially cover the text
now), but I think it's better.
Comment 3 Giovanni Campagna 2013-08-18 16:10:09 UTC
*** Bug 695763 has been marked as a duplicate of this bug. ***