heavyweight editor hints look fix

This commit is contained in:
Kirill Kalishev
2011-02-16 19:50:31 +03:00
parent 9306626a34
commit d3a08b9513
4 changed files with 5 additions and 7 deletions
@@ -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