Skip to content

Commit be2696f

Browse files
Update Demo 244 to display dashed boxes (abap2UI5#299)
1 parent 7a9928b commit be2696f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/z2ui5_cl_demo_app_244.clas.abap

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,25 @@ CLASS z2ui5_cl_demo_app_244 IMPLEMENTATION.
3131

3232
METHOD DISPLAY_VIEW.
3333

34-
DATA(page) = z2ui5_cl_xml_view=>factory( )->shell(
34+
35+
DATA(css) = `.sapUiDemoFlexBoxSizeAdjustments .sapMFlexItem {` &&
36+
` border: 1px dashed #000;` &&
37+
` margin: 0.1875rem;` &&
38+
` padding: 0.1875rem;` &&
39+
`}` &&
40+
41+
`.sapUiDemoFlexBoxSizeAdjustmentsZeroWidthItems .sapMFlexItem {` &&
42+
` width: 0;` &&
43+
`}` &&
44+
45+
`.sapMFlexItem {` &&
46+
` position: relative;` &&
47+
`}`.
48+
49+
DATA(view) = z2ui5_cl_xml_view=>factory( ).
50+
view->_generic( name = `style` ns = `html` )->_cc_plain_xml( css )->get_parent( ).
51+
52+
DATA(page) = view->shell(
3553
)->page(
3654
title = `abap2UI5 - Sample: Flex Box - Size Adjustments`
3755
navbuttonpress = client->_event( 'BACK' )

0 commit comments

Comments
 (0)