Don't treat min-width and min-height as a fixed size
I have no idea why there existed code that if we saw e.g. min-width without a width, we assigned min-width to ->width, thus effectively treating it as a maximum. Just delete that bit. https://bugzilla.gnome.org/show_bug.cgi?id=618482
This commit is contained in:
parent
e835cd2c2d
commit
47a92e7fc0
@ -1141,8 +1141,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node)
|
||||
else if (node->width > node->max_width)
|
||||
node->width = node->max_width;
|
||||
}
|
||||
else
|
||||
node->width = node->min_width;
|
||||
|
||||
if (node->height != -1)
|
||||
{
|
||||
@ -1155,8 +1153,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node)
|
||||
else if (node->height > node->max_height)
|
||||
node->height = node->max_height;
|
||||
}
|
||||
else
|
||||
node->height = node->min_height;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user