summaryrefslogtreecommitdiff
path: root/src/ui/mobile.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-06 09:19:47 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-06 09:19:47 +0200
commitff316e540269a34214d298249190db8891b2d885 (patch)
treec96041581949246b699e66b6885ff8152282a427 /src/ui/mobile.c
parent96e469636c8573238b04f48d648c22caa7c6c0fa (diff)
Mobile: Tablet fixes
Diffstat (limited to 'src/ui/mobile.c')
-rw-r--r--src/ui/mobile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/mobile.c b/src/ui/mobile.c
index 947c0cbf..fdcc4248 100644
--- a/src/ui/mobile.c
+++ b/src/ui/mobile.c
@@ -130,9 +130,10 @@ static iBool mainDetailSplitHandler_(iWidget *mainDetailSplit, const char *cmd)
130 iAssert(topPanel); 130 iAssert(topPanel);
131 topPanel->rect.size.x = (deviceType_App() == phone_AppDeviceType ? 131 topPanel->rect.size.x = (deviceType_App() == phone_AppDeviceType ?
132 safeRoot.size.x * 2 / 5 : (safeRoot.size.x / 3)); 132 safeRoot.size.x * 2 / 5 : (safeRoot.size.x / 3));
133 } 133 }
134 if (deviceType_App() == tablet_AppDeviceType) { 134 if (deviceType_App() == tablet_AppDeviceType) {
135 setPadding_Widget(topPanel, pad, 0, pad, pad); 135 setPadding_Widget(topPanel, pad, 0, pad, pad);
136#if 0
136 if (numPanels == 0) { 137 if (numPanels == 0) {
137 setFlags_Widget(sheet, centerHorizontal_WidgetFlag, iTrue); 138 setFlags_Widget(sheet, centerHorizontal_WidgetFlag, iTrue);
138 const int sheetWidth = iMin(safeRoot.size.x, safeRoot.size.y); 139 const int sheetWidth = iMin(safeRoot.size.x, safeRoot.size.y);
@@ -140,6 +141,7 @@ static iBool mainDetailSplitHandler_(iWidget *mainDetailSplit, const char *cmd)
140 setFixedSize_Widget(sheet, init_I2(sheetWidth, -1)); 141 setFixedSize_Widget(sheet, init_I2(sheetWidth, -1));
141 setFixedSize_Widget(navi, init_I2(sheetWidth, -1)); 142 setFixedSize_Widget(navi, init_I2(sheetWidth, -1));
142 } 143 }
144#endif
143 } 145 }
144 iWidget *detailTitle = findChild_Widget(navi, "detailtitle"); { 146 iWidget *detailTitle = findChild_Widget(navi, "detailtitle"); {
145 setPos_Widget(detailTitle, init_I2(width_Widget(topPanel), 0)); 147 setPos_Widget(detailTitle, init_I2(width_Widget(topPanel), 0));
@@ -722,6 +724,7 @@ void initPanels_Mobile(iWidget *panels, iWidget *parentWidget,
722 setFlags_Widget(panels, 724 setFlags_Widget(panels,
723 resizeToParentWidth_WidgetFlag | resizeToParentHeight_WidgetFlag | 725 resizeToParentWidth_WidgetFlag | resizeToParentHeight_WidgetFlag |
724 frameless_WidgetFlag | focusRoot_WidgetFlag | commandOnClick_WidgetFlag | 726 frameless_WidgetFlag | focusRoot_WidgetFlag | commandOnClick_WidgetFlag |
727 horizontalOffset_WidgetFlag |
725 /*overflowScrollable_WidgetFlag |*/ leftEdgeDraggable_WidgetFlag, 728 /*overflowScrollable_WidgetFlag |*/ leftEdgeDraggable_WidgetFlag,
726 iTrue); 729 iTrue);
727 setFlags_Widget(panels, overflowScrollable_WidgetFlag, iFalse); 730 setFlags_Widget(panels, overflowScrollable_WidgetFlag, iFalse);