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

Prevent editor toolbar being too small, at least for left-aligned elements #855

Merged
merged 1 commit into from
Jan 5, 2015

Conversation

kossebau
Copy link
Contributor

If there are only floating elements, the Dojo toolbar shrinks to 0 height.
To prevent this at least for left-aligned elements, do not set them as
float:left. (Also reorder generation to keep current tool ordering)

No idea yet how to solve supporting right-aligned toolbar elements, which
seem only possible with float:right styling. So if alone on the toolbar,
or if being the first element moved to a new line on shrinked toolbar width,
then still the toolbar is rendered too small.

Using "clear:both" on the :after pseudo element should fix the problem with right floats.
Tested with Firefox 34 and Chromium 39.

Fixes #468 for me.

@kogmbh-ci
Copy link

Build succeeded.
Refer to this link for build results: http://ci.kogmbh.com/jenkins/job/WebODF-PullReq/2293/

@kogmbh-ci
Copy link

Build succeeded.
Refer to this link for build results: http://ci.kogmbh.com/jenkins/job/WebODF-PullReq/2294/

@kogmbh-ci
Copy link

Build succeeded.
Refer to this link for build results: http://ci.kogmbh.com/jenkins/job/WebODF-PullReq/2295/

@peitschie
Copy link
Contributor

The original bug in master is much more subtle on Windows than Aditya's video shows. I can only just see it in IE + FF.

But, I can confirm this improves things for me 👍. Please land our first patch of 2015 😄

…ments

If there are only floating elements, the Dojo toolbar shrinks to 0 height.

To prevent this for left-aligned elements, do not set them as
float:left. (Also reorder generation to keep current tool ordering)

And for elements floating to the right, clear any floating for the toolbar element
with "clear:both" on the pseudo :after element.
@kossebau
Copy link
Contributor Author

kossebau commented Jan 5, 2015

Thanks for checking :) Landing now at least as second for 2015 :)

@kogmbh-ci
Copy link

Build succeeded.
Refer to this link for build results: http://ci.kogmbh.com/jenkins/job/WebODF-PullReq/2297/

kossebau pushed a commit that referenced this pull request Jan 5, 2015
Prevent editor toolbar being too small, at least for left-aligned elements
@kossebau kossebau merged commit e7827ef into webodf:master Jan 5, 2015
@kossebau kossebau deleted the fixTooSmallToolbarALittle branch January 5, 2015 11:09
@kossebau
Copy link
Contributor Author

kossebau commented Jan 7, 2015

hups, thanks

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.

Toolbar contents seem to overflow strangely
4 participants