mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
heavyweight editor hints look fix
This commit is contained in:
@@ -1158,8 +1158,6 @@ public class LookupImpl extends LightweightHint implements Lookup, Disposable {
|
||||
panel.remove(0);
|
||||
panel.add(hintComponent);
|
||||
}
|
||||
//todo[kirillk] comment the following line
|
||||
HintManagerImpl.adjustEditorHintPosition(myAutopopupHint, editor, bestPoint);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -369,7 +369,7 @@ public class HintManagerImpl extends HintManager implements Disposable {
|
||||
p = rectangle.getLocation();
|
||||
SwingUtilities.convertPointFromScreen(p, layeredPane);
|
||||
}
|
||||
else if ((layeredPane.getWidth() < p.x + size.width) && !hintInfo.isAwtTooltip()) {
|
||||
else if ((layeredPane.getWidth() < p.x + size.width) && !hintInfo.isAwtTooltip() && !hint.isRealPopup()) {
|
||||
p.x = Math.max(0, layeredPane.getWidth() - size.width);
|
||||
}
|
||||
|
||||
|
||||
@@ -185,11 +185,11 @@ public class LightweightHint extends UserDataHolderBase implements Hint {
|
||||
.setMovable(myTitle != null)
|
||||
.setTitle(myTitle)
|
||||
.setModalContext(false)
|
||||
.setShowShadow(!myForceLightweightPopup && myForceShowAsPopup)
|
||||
.setShowShadow(isRealPopup())
|
||||
.setCancelKeyEnabled(false)
|
||||
.setCancelOnClickOutside(myCancelOnClickOutside)
|
||||
.setCancelOnOtherWindowOpen(myCancelOnOtherWindowOpen)
|
||||
.setForceHeavyweight(!myForceLightweightPopup && myForceShowAsPopup)
|
||||
.setForceHeavyweight(!myForceLightweightPopup && isRealPopup())
|
||||
.createPopup();
|
||||
|
||||
beforeShow();
|
||||
@@ -241,7 +241,7 @@ public class LightweightHint extends UserDataHolderBase implements Hint {
|
||||
}
|
||||
|
||||
public final boolean isRealPopup() {
|
||||
return myIsRealPopup;
|
||||
return myIsRealPopup | myForceShowAsPopup;
|
||||
}
|
||||
|
||||
public void hide() {
|
||||
|
||||
@@ -35,7 +35,7 @@ ide.debugMode=false
|
||||
ide.debugMode.description=Record additonal information to make bug reports more informative
|
||||
ide.forcedShowTooltip=alt
|
||||
ide.forcedShowTooltip.description=Shortcut for forced show tooltip
|
||||
ide.popup.dropShadow=false
|
||||
ide.popup.dropShadow=true
|
||||
ide.consumeKnownToolkitBugs=true
|
||||
|
||||
ide.appIcon.progress=true
|
||||
|
||||
Reference in New Issue
Block a user