Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap.m.Popover with VBox content shows horizontal scrollbar #4215

Open
bfopta opened this issue Feb 27, 2025 · 1 comment
Open

sap.m.Popover with VBox content shows horizontal scrollbar #4215

bfopta opened this issue Feb 27, 2025 · 1 comment
Assignees

Comments

@bfopta
Copy link

bfopta commented Feb 27, 2025

OpenUI5 version: 1.133.0, but older versions are also affected (1.120)

Browser/version (+device/version): latest firefox on latest macos
(I know it is not officially supported, feel free to close the issue without fixing it)

Any other tested browsers/devices(OK/FAIL): latest chrome, safari - works OK

URL (minimal example if possible): official popover sample with a small modification: wrap the content in a VBox and make it long enough to show a vertical scrollbar

Steps to reproduce the problem:

  1. Replace view/Popover.fragment.xml with this:
<core:FragmentDefinition
	xmlns="sap.m"
	xmlns:core="sap.ui.core">
	<Popover
		id="myPopover"
		title="{Name}"
		placement="Bottom">
		<VBox>
    		<Image src="{ProductPicUrl}" />
    		<Image src="{ProductPicUrl}" />
    		<Image src="{ProductPicUrl}" />
		</VBox>
	</Popover>
</core:FragmentDefinition>
  1. Open the popover
  2. See the unnecessary horizontal scrollbar

What is the expected result?
The popover should fit the content and shouldn't show a horizontal scrollbar

What happens instead?
There is a horizontal scrollbar

Any other information? (attach screenshot if possible)

Image
@TeodorTaushanov
Copy link
Member

Hello,

Thank you for sharing this finding. I've created an internal incident DINC0426785. The status of the issue will be updated here in GitHub.

Regards,
Teodor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants