Spark 939 dynamic position (#330)

* Dialog moved to top-right (in way that it doesn't cover top menu bar).

Fixed formatting.

SPARK-939_Stretch_and_move_Find_dialog - moved to NORTHEAST

* Spark 939 stretch and move find dialog (#5)

Requested improvements.
This commit is contained in:
Paweł Ścibiorski
2017-03-28 22:58:33 +02:00
committed by wroot
parent 9adc1525ed
commit d1e1ab3418

View File

@ -448,7 +448,7 @@ public class UserManager {
final JPanel mainPanel = new JPanel(new BorderLayout());
mainPanel.setLayout(new GridBagLayout());
mainPanel.add(layoutPanel, new GridBagConstraints(0, 0, 1, 1, 0.5, 0.5, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets(115, 1, 5, 1), 200, 0));
mainPanel.add(layoutPanel, new GridBagConstraints(0, 0, 1, 1, 0.5, 0.5, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets(SparkManager.getMainWindow().getTopToolBar().getHeight()+SparkManager.getWorkspace().getStatusBar().getHeight() + 20, 1, 5, 1), 200, 0));
mainPanel.setOpaque(false);
contactField.setText(contact);