Skip to content

Commit

Permalink
TouchMenu: keep file/exit button on the right
Browse files Browse the repository at this point in the history
References koreader#2555.
  • Loading branch information
Frenzie committed Feb 24, 2017
1 parent c855494 commit 6e84b01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/ui/widget/touchmenu.lua
Expand Up @@ -219,6 +219,12 @@ function TouchMenuBar:init()
for i, sep in ipairs(self.icon_seps) do
local current_icon = i == k - 1 or i == k
self.icon_seps[i].style = current_icon and "solid" or "none"
if i == #self.icon_seps - 1 then
self.icon_seps[i].dimen = Geom:new{
w = self.width - content_width - (math.min(spacing_width, Screen:scaleBySize(20)) * #self.icons *2) + Screen:scaleBySize(2),
h = self.height,
}
end
end
self.menu:switchMenuTab(k)
end
Expand Down

0 comments on commit 6e84b01

Please sign in to comment.