Skip to content

Conversation

@jdsmithsos
Copy link
Contributor

Jira ticket:

https://ikmdev.atlassian.net/browse/IIA-1529

Summary of changes:

  • A new top dropLine is created, placed into the componentToDropLine HashMap with null key
  • In the layoutChildren() method the top dropLine is placed below the titleLabel
  • managing the top dropLine is done in updateDropTargetLocation()
  • updateDropTargetLocation() was modified to only show the dropLine when the mouse is over the dropLine area, now excludes the component area

Before changes:

Both the component dashed rectangle and drop line are shown

image

No top dropLine

image

After changes:

Drop line is not displayed when the component is highlighted during DnD

image

Top dropLine is now available for DnD

image

After drop at top dropLine

image

Copy link
Contributor

@dholubek dholubek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Copy link
Contributor

@dukke dukke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Looks good to me just had a small nitpick comment that is of something that's not even part of your PR.

@@ -306,7 +323,21 @@ protected void layoutChildren(double contentX, double contentY, double contentWi
double x = contentX + padding.getLeft();
double y = contentY + padding.getTop();
titleLabel.resizeRelocate(x, y, labelPrefWidth, labelPrefHeight);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't part of your PR and it's a small nitpick but can you rename labelPrefWidth and labelPrefHeight to titlePrefWidth and titlePrefHeight?

Copy link
Contributor

@carldea carldea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@carldea carldea merged commit 824b9eb into ikmdev:main Apr 30, 2025
6 checks passed
@jdsmithsos jdsmithsos deleted the feature/finished/IIA-1529-drop-line-below-title branch May 1, 2025 12:13
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

Successfully merging this pull request may close these issues.

4 participants