From ca60ceacd0e91e60ac27d3e1a9c3016085af62c8 Mon Sep 17 00:00:00 2001 From: chrox Date: Thu, 27 Nov 2014 22:01:34 +0800 Subject: [PATCH] make radius field respects popout flag --- frontend/ui/widget/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/menu.lua b/frontend/ui/widget/menu.lua index f0b03d53d..3b7cdfbe6 100644 --- a/frontend/ui/widget/menu.lua +++ b/frontend/ui/widget/menu.lua @@ -503,7 +503,7 @@ function Menu:init() bordersize = self.is_borderless and 0 or 2, padding = 0, margin = 0, - radius = math.floor(self.dimen.w/20), + radius = self.is_popout and math.floor(self.dimen.w/20) or 0, content }