diff options
author | David Robillard <d@drobilla.net> | 2012-04-24 04:37:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-24 04:37:54 +0000 |
commit | 47e38b43ea9a56ef3a4fa4655e9c54d7c52d1d0d (patch) | |
tree | df6459da49bf82c7dea4374745ac30d18e9fa735 /src | |
parent | 14b90634123f7e25fe94014555a9ad330cf691a0 (diff) | |
download | ganv-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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, |