summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-24 04:37:54 +0000
committerDavid Robillard <d@drobilla.net>2012-04-24 04:37:54 +0000
commit47e38b43ea9a56ef3a4fa4655e9c54d7c52d1d0d (patch)
treedf6459da49bf82c7dea4374745ac30d18e9fa735 /src
parent14b90634123f7e25fe94014555a9ad330cf691a0 (diff)
downloadganv-47e38b43ea9a56ef3a4fa4655e9c54d7c52d1d0d.tar.gz
ganv-47e38b43ea9a56ef3a4fa4655e9c54d7c52d1d0d.tar.bz2
ganv-47e38b43ea9a56ef3a4fa4655e9c54d7c52d1d0d.zip
Fix port resizing when reducing font size.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4263 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/port.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/port.c b/src/port.c
index 5e9d13e..2aa153b 100644
--- a/src/port.c
+++ b/src/port.c
@@ -222,10 +222,8 @@ ganv_port_resize(GanvNode* self)
"height", &label_h,
NULL);
- ganv_box_set_width(&port->box, MAX(ganv_box_get_width(&port->box),
- label_w + (PORT_LABEL_HPAD * 2.0)));
- ganv_box_set_height(&port->box, MAX(ganv_box_get_height(&port->box),
- label_h + (PORT_LABEL_VPAD * 2.0)));
+ ganv_box_set_width(&port->box, label_w + (PORT_LABEL_HPAD * 2.0));
+ ganv_box_set_height(&port->box, label_h + (PORT_LABEL_VPAD * 2.0));
ganv_item_set(GANV_ITEM(node->impl->label),
"x", PORT_LABEL_HPAD,