GNOME Bugzilla – Bug 695222
window changes size
Last modified: 2013-08-20 15:47:50 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.
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.
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.
*** Bug 695763 has been marked as a duplicate of this bug. ***
https://git.gnome.org/browse/gnome-weather/commit/?id=68050d45e706beaf21924befb3c8500f1e735807