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

fix: fix broken layout when direction rtl is applied #836

Merged
merged 7 commits into from
Nov 17, 2023

Conversation

malangfox
Copy link
Contributor

@malangfox malangfox commented Nov 8, 2023

Issue

#835

Details

This issue fixes the layout breaking when direction: rtl is applied to the viewport.

@malangfox malangfox marked this pull request as draft November 8, 2023 01:11
@coveralls
Copy link

coveralls commented Nov 8, 2023

Coverage Status

coverage: 82.639% (+0.008%) from 82.631%
when pulling 25b505e on malangfox:fix-direction-rtl
into 6927c3e on naver:master.

@malangfox malangfox marked this pull request as ready for review November 9, 2023 21:15
Copy link
Member

@daybrush daybrush left a comment

Choose a reason for hiding this comment

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

LGTM

src/Flicking.ts Outdated
@@ -1511,6 +1520,7 @@ class Flicking extends Component<FlickingEvents> {
camera.updateAdaptiveHeight();
camera.updateOffset();
await renderer.render();
this._updatePanelOrder(camera);
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better to move to the camera class method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have modified updatePanelOrder to camera class method.
You can check the most recent commit.
updatePanelOrder requires flicking.control.controller.updateDirection(); to be called.
Should this be the camera class method, even though it interferes with flicking's controller?

@malangfox malangfox merged commit 92a17fc into naver:master Nov 17, 2023
4 checks passed
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.

None yet

3 participants