mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 950564 part.2 Fix complex text input panel width as focused plugin width if it's not too narrow r=smichaud
This commit is contained in:
parent
31815a4f08
commit
c07e1fbe35
@ -162,12 +162,11 @@ using namespace mozilla;
|
||||
viewRect.origin = [[view window] convertBaseToScreen:viewRect.origin];
|
||||
}
|
||||
NSRect selfRect = [self frame];
|
||||
// XXX Is this work well with Retina display?
|
||||
CGFloat minWidth = static_cast<CGFloat>(
|
||||
Preferences::GetUint("ui.plugin.panel.min-width", 500));
|
||||
NSRect rect = NSMakeRect(viewRect.origin.x,
|
||||
viewRect.origin.y - selfRect.size.height,
|
||||
std::min(viewRect.size.width, minWidth),
|
||||
std::max(viewRect.size.width, minWidth),
|
||||
selfRect.size.height);
|
||||
|
||||
// Adjust to screen.
|
||||
|
Loading…
Reference in New Issue
Block a user