Skip to content

NO-ISSUE: DMN Editor: Boxed Expression context menu renders behind other panels #2350

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

Merged
merged 1 commit into from
May 22, 2024

Conversation

danielzhe
Copy link
Contributor

@danielzhe danielzhe commented May 21, 2024

In a screen with few vertical space available, the context menus was getting hiden. In some cases user can access the content with the browser scrollbar, but most of the cases the content just isn't available. See the pictures bellow:

Before:
before 1
before 2
before 3

After:
https://github.com/apache/incubator-kie-tools/assets/7305741/a1f6e056-0a5c-48e1-8fb0-c7115979ffc5

@danielzhe danielzhe added pr: DO NOT MERGE Draft PR, not ready for merging area:dmn labels May 21, 2024
selectLogicTypeContainer.current.style.overflowY = "visible";
}
}
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't forget to put the dependencies here, otherwise this will execute every time this component re-renders.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ESLint told me that there are no dependencies required here. When I add it manually he told me to remove.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, ESLint is actually right :) I This is a very specific case where there is no reactivity associated with this effect. All good. Thx!

@danielzhe danielzhe force-pushed the menu-renders-behind branch from da805bf to 6a0fa4b Compare May 22, 2024 00:53
@danielzhe danielzhe added pr: waiting-for-review Waiting for peer reviews and removed pr: DO NOT MERGE Draft PR, not ready for merging labels May 22, 2024
@danielzhe danielzhe marked this pull request as ready for review May 22, 2024 00:53
@tiagobento tiagobento changed the title NO-ISSUE: Boxed Expression context menu renders behind other panels NO-ISSUE: DMN Editor: Boxed Expression context menu renders behind other panels May 22, 2024
Copy link
Member

@Josephblt Josephblt left a comment

Choose a reason for hiding this comment

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

Everything is looking great. I liked the solution with the scroll bar, it solves the rendering problem and it is much easier to use it this way.

There is a small problem, though. It is not a big deal. But if you open the Problems tab, open the context menu, and close the Problems tab, we get this small issue.
Screenshot from 2024-05-22 09-15-02
This does not affect usability in any way, it just does not look good. This is not urgent but, in my opinion, it would be good if we could address this.

Copy link
Contributor

@jomarko jomarko left a comment

Choose a reason for hiding this comment

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

Hi @danielzhe one question, does this #2350 or #2352 address also context menus for data type selection? On the current main they are quite small/non readable if they are opened next to the border of the screen.

image

@danielzhe
Copy link
Contributor Author

@jomarko No.

@danielzhe
Copy link
Contributor Author

@Josephblt As we talked in pvt chat, if you keep the menu open its size doesn't change. You have to close it and open it again.

@tiagobento
Copy link
Contributor

@danielzhe Is this good to merge?

@danielzhe danielzhe removed the pr: waiting-for-review Waiting for peer reviews label May 22, 2024
@tiagobento tiagobento merged commit e23410b into apache:main May 22, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants