mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-02-20 04:36:46 +00:00
修复UIExtension下文本选择菜单显示不全
Signed-off-by: zhouyan <zhouyan162@huawei.com> Change-Id: I77302b82af1834abdb3397c23cfe216bfb5000ca
This commit is contained in:
parent
0afdfac642
commit
1df98f45e9
@ -1437,6 +1437,11 @@ void SelectOverlayNode::GetDefaultButtonAndMenuWidth(float& maxWidth)
|
||||
auto textOverlayTheme = pipeline->GetTheme<TextOverlayTheme>();
|
||||
CHECK_NULL_VOID(textOverlayTheme);
|
||||
auto selectOverlayMaxWidth = OVERLAY_MAX_WIDTH.ConvertToPx();
|
||||
auto container = Container::Current();
|
||||
if (container && container->IsUIExtensionWindow()) {
|
||||
auto curWindowRect = pipeline->GetCurrentWindowRect();
|
||||
selectOverlayMaxWidth = std::min(selectOverlayMaxWidth, curWindowRect.Width());
|
||||
}
|
||||
|
||||
const auto& menuPadding = textOverlayTheme->GetMenuPadding();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user