sap.uxap.ObjectPageLayout: sap.m.Table is shrinked in phone mode
Dear UI5-Team,
my application has the following structure
sap.m.Page
IconTabBar
IconTabFilter
<mvc:XMLView containing a sap.m.Table
Displaying this screen in Chrome in Galaxy S5 mode, the table takes 100% width.
In the meantime I switched to the sap.uxap.ObjectPageLayout and the structure is as follows now:
sap.m.Page
ObjectPageLayout useIconTabBar="true"
sections
ObjectPageSection
subSections
ObjectPageSubSection
blocks
<mvc:XMLView containing a sap.m.Table
Now the table is shrinked. Left to the table is a margin of let's say 3 mm and right to it 6 mm. It's worse in landscape mode.
The OpenUI5 version is 1.60.1.
Hi @born2dev I cannot reproduce this in our test system. Could you please share a running application that we can see and debug the issue in action.
Hello @aborjinik,
please see the example
https://jsbin.com/yajixepaba/edit?html,output
Outside the ObjectPageLayout there is normally a sap.m.Page which I couldn't get working in this jsbin sample that's why it is commented out. However the shrinking issue is still there.
Sorry I am still a little confused! What do you mean with shrink? Do you mean the paddings below?

Yes, I mean that space left and right to the table.
Using sap.m.Page IconTabBar IconTabFilter <mvc:XMLView containing a sap.m.Table the table takes the whole widths in phone mode.
@born2dev this needs to be clarified with designers therefore I opened internal incident 1970029565. We will inform you again.
Hi @born2dev, @aborjinik, The ObjectPage applies the following standard margins as per the visual design: 2rem for Desktop (results in 3 rem with the additional from inside containers), 1rem on Tablet and Phone, on left and right sides. This way the content is aligned with the header content and is by specification. This is the green padding on your screenshot. The other space is from the class sapUiResponsiveMargin, you have applied to the Table.
Regards, Mihail.
Hi @myordanov,
thank you for the explanation.
Is there any modification-free way to let a sap.m.Table take 100% width inside an ObjectPageLayout in phone mode? In my opinion this is more beautiful and useable.
Like so:

Hi @born2dev, as far as I know there isn't such a way from inside the used controls, but of course you may use your custom CSS to achieve that with some ngative margins.
Regards, Mihail.