Quasar: Have QSplitter work with absolute sizes (in addition to percentages)

Created on 11 Oct 2019  路  4Comments  路  Source: quasarframework/quasar

I'm using QSplitter to create a collapse-able panels. I'd like the option to keep the left or right slots fixed in terms of px instead of %. My hack right now with involves un-normalizing the percentage and it's not a great solution--my UI jitters like crazy when resized.

feature request

Most helpful comment

It works perfectly. Thank you!!!!

All 4 comments

@rfox12 Using a percentage makes sense for most users, especially for mobile where a user can rotate their device from portrait to landscape. I presume your use-case is you have a fixed width and height?

I hear ya about the "works for most users"--completely agree--I've renamed the issue. Maybe have the user option to use percentages or px?

I'm basically trying to achieve somethings like Quasar's expansion item (https://quasar.dev/vue-components/expansion-item) with left-expand-right or right-expand-left. With the added functionality that when "open" the user can decide how much they want to open the panel.

"reverse" Boolean prop and "unit" ('%' or 'px') will be available in "quasar" v1.2.6.

It works perfectly. Thank you!!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bangood picture Bangood  路  3Comments

fnicollier picture fnicollier  路  3Comments

jean-moldovan picture jean-moldovan  路  3Comments

nueko picture nueko  路  3Comments

alexeigs picture alexeigs  路  3Comments