openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.uxap.ObjectPageLayout: sap.m.Table is shrinked in phone mode

Open born2dev opened this issue 7 years ago • 8 comments

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.

born2dev avatar Dec 21 '18 14:12 born2dev

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.

aborjinik avatar Dec 23 '18 22:12 aborjinik

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.

born2dev avatar Dec 28 '18 10:12 born2dev

Sorry I am still a little confused! What do you mean with shrink? Do you mean the paddings below? image

aborjinik avatar Dec 28 '18 14:12 aborjinik

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 avatar Dec 29 '18 05:12 born2dev

@born2dev this needs to be clarified with designers therefore I opened internal incident 1970029565. We will inform you again.

aborjinik avatar Jan 11 '19 08:01 aborjinik

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.

myordanov avatar Jan 11 '19 11:01 myordanov

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: grafik

born2dev avatar Jan 16 '19 14:01 born2dev

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.

myordanov avatar Jan 17 '19 08:01 myordanov