Makes the button bar in full-screen mode appear whenever the mouse pointer is within its height and the screen width, not just the button bar width.

cusax-fix
Lyubomir Marinov 17 years ago
parent a0ec30fa82
commit f277264e9a

@ -13,7 +13,6 @@
import javax.swing.*;
import javax.swing.Timer;
import net.java.sip.communicator.impl.gui.customcontrols.*;
import net.java.sip.communicator.impl.gui.i18n.*;
import net.java.sip.communicator.impl.gui.utils.*;
import net.java.sip.communicator.service.protocol.*;
@ -766,9 +765,12 @@ public void mouseMoved(MouseEvent event)
Point pointInContentPane =
SwingUtilities.convertPoint(component, event
.getPoint(), contentPane);
Rectangle hotSpotBounds = buttonBar.getBounds();
buttonBar.setVisible(buttonBar.getBounds().contains(
pointInContentPane));
hotSpotBounds.x = 0;
hotSpotBounds.width = contentPane.getWidth();
buttonBar.setVisible(hotSpotBounds
.contains(pointInContentPane));
}
}
});

Loading…
Cancel
Save