Giter Site home page Giter Site logo

Comments (8)

jungm avatar jungm commented on July 22, 2024 1

Actually I just found this #10663
Was in a bit of a rush yesterday and didn't check, this issue is probably a duplicate 🙂

I'm okay with closing if this is done by design. Still a bit confusing though that the position is reset on scroll IMO but there's probably some edge case this covers I'm not aware of right now

from primefaces.

melloware avatar melloware commented on July 22, 2024

@jungm does it work with responsive="false". ??

from primefaces.

jungm avatar jungm commented on July 22, 2024

@melloware yeah it does, but that also disables resetting the dialogs position when the window is resized.

IMO I'd like to see both work:

  • Position is not reset on scroll
  • Position is reset when window is resized

from primefaces.

melloware avatar melloware commented on July 22, 2024

Ok so I think you are saying you want to separate scrollable and resizable from Responsive?

from primefaces.

melloware avatar melloware commented on July 22, 2024

So i looked we do this because when scrolling down the page it forces the dialog to stay centered and scroll down the page. Is your real issue that you don't want the page to scroll? You could use blockScroll="true" to stop the browser scrollbar while the dialog is displayed?

from primefaces.

melloware avatar melloware commented on July 22, 2024

actually does positionType="absolute" fix it to how you want it?

<p:dialog visible="true" positionType="absolute">

from primefaces.

jungm avatar jungm commented on July 22, 2024

So i looked we do this because when scrolling down the page it forces the dialog to stay centered and scroll down the page.

Exactly this is what felt odd to me, I don't want to block scrolling or switch it to absolute positioning. Just that it stays where I left on my screen as I scroll the rest of the page and does not jump back to the original position

from primefaces.

melloware avatar melloware commented on July 22, 2024

OK yeah I will mark by design!

from primefaces.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.