Skip to content

Attempt to make controls appear in the correct spot#95

Merged
mtias merged 1 commit intomasterfrom
fix/92
Feb 20, 2017
Merged

Attempt to make controls appear in the correct spot#95
mtias merged 1 commit intomasterfrom
fix/92

Conversation

@timmyc
Copy link
Copy Markdown
Contributor

@timmyc timmyc commented Feb 17, 2017

Closes #92 - This solution is not perfect, but it does get the controls to flow around much better when aligning images. Currently there is still some weirdness if you continually toggle alignments in rapid succession. I started to even play with setTimeout a bit but realized that might be overkill for the UI prototype.

So... to test this out, interact with the image align controls. Specifically go from "normal" to "right", and to full bleed. For best results, focus on a different block between those two ;)

@timmyc timmyc requested a review from mtias February 17, 2017 22:43
@jasmussen
Copy link
Copy Markdown
Contributor

Nice! Works pretty well, especially for the prototype. The controls jittered a bit vertically for me, e.g. try to first right align, then left align, and the controls would be vertically off. But selecting another block, then the image again, fixed that right up.

@mtias
Copy link
Copy Markdown
Member

mtias commented Feb 20, 2017

Next step is repositioning the block move controls :)

@mtias mtias merged commit afa5dbe into master Feb 20, 2017
@mtias mtias deleted the fix/92 branch February 20, 2017 11:01
@timmyc
Copy link
Copy Markdown
Contributor Author

timmyc commented Feb 20, 2017

The controls jittered a bit vertically for me, e.g. try to first right align, then left align, and the controls would be vertically off

Indeed I was having the same issues. I think it is a timing thing with the image block resizing/moving. Another issue is resizing the browser window - the block controls stay fixed since we don't listen to window resize events. But for the sake of the prototype it seems to work "well enough"

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.

3 participants