summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/layers.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2012-01-02 08:10:16 +0000
committerJazzyNico <nicoduf@yahoo.fr>2012-01-02 08:10:16 +0000
commit93e419271061b1bcbf6869a7ac40c9e16bcc6cdc (patch)
treec62112f9802e77684e5e1fa4be212c5995afc0bd /src/ui/dialog/layers.cpp
parentFix for bugs #910463, #910467 and #910479 (default widget size too small) by ... (diff)
downloadinkscape-93e419271061b1bcbf6869a7ac40c9e16bcc6cdc.tar.gz
inkscape-93e419271061b1bcbf6869a7ac40c9e16bcc6cdc.zip
Fix for bugs #902054, #884368 and #909958 (minimum widget size) by John Smith.
(bzr r10819)
Diffstat (limited to 'src/ui/dialog/layers.cpp')
-rw-r--r--src/ui/dialog/layers.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/dialog/layers.cpp b/src/ui/dialog/layers.cpp
index 340a1921c..b71130b20 100644
--- a/src/ui/dialog/layers.cpp
+++ b/src/ui/dialog/layers.cpp
@@ -618,6 +618,13 @@ LayersPanel::LayersPanel() :
_scroller.add( _tree );
_scroller.set_policy( Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC );
_scroller.set_shadow_type(Gtk::SHADOW_IN);
+ Gtk:: Requisition sreq;
+ _scroller.size_request(sreq);
+ int minHeight = 70;
+ if (sreq.height < minHeight) {
+ // Set a min height to see the layers when used with Ubuntu liboverlay-scrollbar
+ _scroller.set_size_request(sreq.width, minHeight);
+ }
_watching.push_back( &_compositeSettings );