Skip to content

Recenter boxes after dimension changes#310

Open
vitaly-zdanevich wants to merge 1 commit into
desktop-app:masterfrom
vitaly-zdanevich:codex/recenter-resized-boxes
Open

Recenter boxes after dimension changes#310
vitaly-zdanevich wants to merge 1 commit into
desktop-app:masterfrom
vitaly-zdanevich:codex/recenter-resized-boxes

Conversation

@vitaly-zdanevich

Copy link
Copy Markdown

Summary

Recenter box layers horizontally after their dimensions change while they are centered within the outer layer container.

Why

Some box content can resize after opening or after a parent/screen geometry change. The existing path already recalculates the vertical position, but keeps the old left coordinate, so a centered box can drift horizontally when its width changes.

Validation

Built Telegram Desktop Debug with the dependent tdesktop changes:

docker run --rm -u 1001:1003 -v /home/vitaly/p/tdesktop:/usr/src/tdesktop -e CONFIG=Debug tdesktop:centos_env cmake --build /usr/src/tdesktop/out --config Debug --target Telegram

Keep centered box layers horizontally centered when content updates its dimensions, matching the existing vertical recentering path.

Co-authored-by: OpenAI ChatGPT <noreply@openai.com>
@CLAassistant

CLAassistant commented Jun 24, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants