You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've worked around the issue by wrapping the scene selector div within another container div. The container div has padding, while the inner scene selector div does not. To more easily see the issue, change the selector in example/index.js from .slideshow to .slideshow-container. Run npm run example to build and run the server.
Notice how .famous-dom-renderer is correctly sized to the container dimensions (sans padding), but the .famous-dom-element slide nodes are sized to the container dimensions with padding.
The text was updated successfully, but these errors were encountered:
When a scene selector element has padding, the engine uses the content size plus padding as the default size for child nodes.
An example may be seen at:
https://github.com/peacechen/famous-carousel
I've worked around the issue by wrapping the scene selector div within another container div. The container div has padding, while the inner scene selector div does not. To more easily see the issue, change the selector in
example/index.js
from.slideshow
to.slideshow-container
. Runnpm run example
to build and run the server.Notice how
.famous-dom-renderer
is correctly sized to the container dimensions (sans padding), but the.famous-dom-element
slide nodes are sized to the container dimensions with padding.The text was updated successfully, but these errors were encountered: