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

Overflow scroll cuts off content #60

Open
mufty opened this issue Aug 2, 2024 · 5 comments
Open

Overflow scroll cuts off content #60

mufty opened this issue Aug 2, 2024 · 5 comments

Comments

@mufty
Copy link

mufty commented Aug 2, 2024

Got a pretty simple setup that's mostly just text and some bitmaps. Without overflow it looks something like this:

image

Adding limits to the flow elements that would make it scroll starts behaving all sorts of wrong.

max-height: 800;
overflow: scroll;

Just hides's the whole thing tho I can see in debug that the elements is there.

image

Trying to mess around with it more reveals that all the elements are being hidden by something. Adding more width to the element does show parts of the element's content.

image

It's like there is something on top of the whole element that's making the content invisible.

@ncannasse
Copy link
Member

ncannasse commented Aug 2, 2024 via email

@mufty
Copy link
Author

mufty commented Aug 2, 2024

That's what I did tho.

It looks like this:

<flow class="scroll">
  .... all my text and everything I wanna scroll is here ...
</flow>

the scroll class style looks like this:

.scroll {
    layout: vertical;
    content-align: middle;
    height: 800;
    width: 700;
    overflow: scroll;
}

@mufty
Copy link
Author

mufty commented Aug 2, 2024

Debug image confirming that I tried this and it's still doing the same thing.

image

@ncannasse
Copy link
Member

I mean you need a flow for the container of all data, then an outer flow that will perform the scroll and limit the size.

@mufty
Copy link
Author

mufty commented Aug 2, 2024

I mean you need a flow for the container of all data, then an outer flow that will perform the scroll and limit the size.

No success I tried something like this (pseudo code cuz there is no style attribute):

<flow style="height: 600; width: 1000; overflow: scroll;">
  <flow style="layout: vertical;content-align: middle;">
    ... all data / text ...
  </flow>
</flow>

wondering if it's cuz well there are more flows on top of this cuz this essentially it is just a section of one big flow that's using full screen then there is a flow that acts as a "window" in the middle of it and then that has this thing in it that I want to scroll.

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

No branches or pull requests

2 participants