From 61aae82e3a9bd38ec67e213aed185756fd22a385 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Sat, 2 Nov 2013 22:54:49 +0100 Subject: [PATCH] Hide forecast while rebuilding UI, fixes optical glitch. --- src/extension.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extension.js b/src/extension.js index 89ff5f2..e57cb2e 100644 --- a/src/extension.js +++ b/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);