Merge remote-tracking branch 'origin/master'
authorAlexander Lobas <Alexander.Lobas@jetbrains.com>
Tue, 31 Jan 2012 08:22:25 +0000 (12:22 +0400)
committerAlexander Lobas <Alexander.Lobas@jetbrains.com>
Tue, 31 Jan 2012 08:22:25 +0000 (12:22 +0400)
plugins/ui-designer/src/com/intellij/uiDesigner/radComponents/RadGridBagLayoutManager.java

index 3d0e493abea55b7f5cf3f1c9b323cca2a6b49121..7b0b6b1c677e76718d75efb387910018779d5034 100644 (file)
@@ -244,7 +244,7 @@ public class RadGridBagLayoutManager extends RadAbstractGridLayoutManager {
   @Override
   public ComponentDropLocation getDropLocation(@NotNull RadContainer container, @Nullable final Point location) {
     if (getGridRowCount(container) == 0 && getGridColumnCount(container) == 0) {
-      return new FirstComponentInsertLocation(container, container.getBounds(), 0, 0);
+      return new FirstComponentInsertLocation(container, new Rectangle(0, 0, container.getWidth(), container.getHeight()), 0, 0);
     }
     return super.getDropLocation(container, location);
   }