menu/main_menu: Better RTL support
This commit is contained in:
@@ -42,14 +42,12 @@ class MenuPanel(ScreenPanel):
|
||||
if not self.evaluate_enable(item[key]['enable']):
|
||||
continue
|
||||
|
||||
col = i % columns if self._screen.lang_ltr == True else (columns - (i % columns) - 1)
|
||||
col = i % columns
|
||||
row = int(i/columns)
|
||||
width = 1
|
||||
|
||||
if expandLast == True and i+1 == l and l%2 == 1:
|
||||
width = 2
|
||||
if not self._screen.lang_ltr:
|
||||
col = col - 1
|
||||
|
||||
self.grid.attach(self.labels[key], col, row, width, 1)
|
||||
i += 1
|
||||
|
Reference in New Issue
Block a user