Hide forecast while rebuilding UI, fixes optical glitch.

openweathermap_3.6
Jens Lody 11 years ago
parent 30c0ec74b1
commit 61aae82e3a
  1. 2
      src/extension.js

@ -704,6 +704,7 @@ const WeatherMenuButton = new Lang.Class({
_onOpenStateChanged: function(menu, open) {
if (open && this._forecastScrollBox != undefined && this._forecastBox != undefined && this._currentWeather != undefined) {
this._forecastScrollBox.set_width(this._currentWeather.get_width());
this._forecastScrollBox.show();
if (this._forecastBox.get_width() > this._currentWeather.get_width()) {
this._forecastScrollBox.hscroll.margin_top = 10;
this._forecastScrollBox.hscroll.show();
@ -1652,6 +1653,7 @@ weather-storm.png = weather-storm-symbolic.svg
this._forecastScrollBox.hscroll.hide();
this._forecastScrollBox.vscrollbar_policy = Gtk.PolicyType.NEVER;
this._forecastScrollBox.hscrollbar_policy = Gtk.PolicyType.AUTOMATIC;
this._forecastScrollBox.hide();
this._futureWeather.set_child(this._forecastScrollBox);

Loading…
Cancel
Save