Fix flexible spacer distance
authorDalai Felinto <dfelinto@gmail.com>
Wed, 13 Jun 2018 13:17:56 +0000 (15:17 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 13 Jun 2018 13:17:56 +0000 (15:17 +0200)
Introduced on 0bce173bc7e9bb6d6cac.

source/blender/editors/interface/interface.c

index d321cbbb89efb3449e442c71fb19317a0f6ff138..3b281315e382375d932e3da6cb8b3d221860962a 100644 (file)
@@ -243,7 +243,7 @@ static void ui_update_flexible_spacing(const ARegion *region, uiBlock *block)
 
        rcti rect;
        ui_but_to_pixelrect(&rect, region, block, block->buttons.last);
-       const float buttons_width = (float)rect.xmax + 2 * UI_HEADER_OFFSET;
+       const float buttons_width = (float)rect.xmax + UI_HEADER_OFFSET;
        const float region_width = (float)region->sizex * U.dpi_fac;
 
        if (region_width <= buttons_width) {