From 8db3bc02d9429dbb95e36798a2ed593f146f2888 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 cce09b1..8e9c806 100644 --- a/src/extension.js +++ b/src/extension.js @@ -702,6 +702,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(); @@ -1650,6 +1651,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);