From 47e38b43ea9a56ef3a4fa4655e9c54d7c52d1d0d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 Apr 2012 04:37:54 +0000 Subject: Fix port resizing when reducing font size. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4263 a436a847-0d15-0410-975c-d299462d15a1 --- src/port.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/port.c') 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, -- cgit v1.2.1