Ignore:
Timestamp:
2018-06-04T21:03:37+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16356 - dynamic default size of OAuth wizard dialog

Location:
trunk/src/org/openstreetmap/josm/gui/oauth
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java

    r13761 r13892  
    104104                + tr("Please enter your OSM user name and password. The password will <strong>not</strong> be saved "
    105105                        + "in clear text in the JOSM preferences and it will be submitted to the OSM server <strong>only once</strong>. "
    106                         + "Subsequent data upload requests don''t use your password any more.")
     106                        + "Subsequent data upload requests don''t use your password any more.").replaceAll("\\. ", ".<br>")
    107107                        + "</p>"
    108108                        + "</body></html>");
  • trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java

    r13111 r13892  
    206206
    207207        setTitle(tr("Get an Access Token for ''{0}''", apiUrl));
    208         this.setMinimumSize(new Dimension(600, 420));
     208        this.setMinimumSize(new Dimension(500, 400));
    209209
    210210        pnlFullyAutomaticAuthorisationUI = new FullyAutomaticAuthorizationUI(apiUrl, executor);
     
    313313    public void setVisible(boolean visible) {
    314314        if (visible) {
     315            pack();
    315316            new WindowGeometry(
    316317                    getClass().getName() + ".geometry",
    317318                    WindowGeometry.centerInWindow(
    318319                            Main.parent,
    319                             new Dimension(450, 540)
     320                            getPreferredSize()
    320321                    )
    321322            ).applySafe(this);
Note: See TracChangeset for help on using the changeset viewer.