jide-oss
jide-oss copied to clipboard
On macOS, ResizableFrame won't let frame be sized to bottom of display
On macOS, the ResizableFrame refuses to let the frame be resized to within roughly 20 pixels of the bottom of the screen.
Here's repro code (it creates a ridiculously oversized green border for detecting window-resizing mouse drags):
import com.jidesoft.swing.ResizableFrame;
import javax.swing.*;
import java.awt.*;
public class ScratchSpace {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
ResizableFrame frame = new ResizableFrame("Resizable test");
frame.setBorder(BorderFactory.createLineBorder(Color.GREEN, 10));
JLabel label = new JLabel("Hello cruel world");
label.setBorder(BorderFactory.createEmptyBorder(100, 100, 100, 100));
frame.add(label);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setVisible(true);
});
}
}