ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Side navigation bar for 2 elements is bigger than it should

Open arcanist123 opened this issue 6 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

I have defined a side navigation bar with 2 elements

the line of navigation bar is too long image

To reproduce Steps to reproduce the behavior:

  1. Create a new angular project
  2. install webcomponents
  3. set the app with the following content
4. run the project

Isolated example Please provide an isolated example if possibile, by forking CodeSandbox

Expected behavior The line should not be that long

Screenshots image

Context

  • UI5 Web Components version 1.0.0-rc.8
  • OS/Platform: {windows}
  • Browser (if relevant): {chrome}
  • Other information: {...}

Affected components (if known) side navigation bar

Log output / Any errors in the console N/A

{...}

arcanist123 avatar Aug 30 '20 07:08 arcanist123

Hello @arcanist123

By design, the ui5-side-navigation should fill 100% of the height of its parent. The reason for this bug to happen is simple: the parent element of the Side Navigation doesn't have its height set. In order to fix this issue, try setting the height of the parent element.

Note: If the parent element is not DOM element, but Angular component(like app-root), you will have to set a position property as well.

fifoosid avatar Aug 31 '20 12:08 fifoosid