Skip to content
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

SplitPositionChangeEvent.getPreviousPosition() always returns 0.0 #3186

Closed
honest-niceman opened this issue May 6, 2021 · 0 comments
Closed
Assignees
Labels
state: fixed Fixed by the developer type: bug Something isn't working ver: 7.2.14 Fixed in version ver: 7.3.0 Fixed in version
Milestone

Comments

@honest-niceman
Copy link

Environment
Platform version: 7.2.13
Client type: Web

Description of the bug
Minimal reproducible example

Create screen and add SplitPanel

<layout>
    <split id="splitPanel"
           height="300px"
           width="100%"
           orientation="horizontal">
        <hbox caption="hbox1" width="100%">
            <label value="Label1"/>
        </hbox>
        <hbox caption="hbox2" width="100%">
            <label value="Label2"/>
        </hbox>
    </split>
</layout>

Add SplitPositionChangeEvent in the screen controller

@Inject
private Notifications notifications;

@Subscribe("splitPanel")
public void onSplitPanelSplitPositionChange(SplitPanel.SplitPositionChangeEvent event) {
    notifications.create()
            .withCaption("New position: " + event.getNewPosition() + "," +
                    "Previous position: " + event.getPreviousPosition())
            .show();
}

Expected behavior
getPreviousPosition() method returns corect values

Actual behavior
getPreviousPosition() method always returns 0.0

splitcuba.mp4
@honest-niceman honest-niceman added the type: bug Something isn't working label May 6, 2021
@Flaurite Flaurite added this to the Release 7.2 milestone May 6, 2021
@glebfox glebfox changed the title event.getPreviousPosition() in the SplitPositionChangeEvent in the SplitPanel container always returns 0.0 SplitPositionChangeEvent.getPreviousPosition() always returns 0.0 Jun 22, 2021
@haulmont-git haulmont-git added the ver: 7.2.14 Fixed in version label Jun 22, 2021
@haulmont-git haulmont-git added the ver: 7.3.0 Fixed in version label Jun 22, 2021
@glebfox glebfox assigned glebfox and lovtsovaik and unassigned t1-cuba Jun 22, 2021
@maistrenkoIulia maistrenkoIulia added the state: fixed Fixed by the developer label Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: fixed Fixed by the developer type: bug Something isn't working ver: 7.2.14 Fixed in version ver: 7.3.0 Fixed in version
Projects
None yet
Development

No branches or pull requests

7 participants