Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On macOS, ResizableFrame won't let frame be sized to bottom of display #18

Open
stevemcleod opened this issue Dec 13, 2016 · 0 comments

Comments

@stevemcleod
Copy link

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);
        });
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant