gridster.js icon indicating copy to clipboard operation
gridster.js copied to clipboard

multiple widget pannels

Open antonkulaga opened this issue 12 years ago • 5 comments

I am trying to make several widgets on one page (i.e. https://gist.github.com/antonkulaga/5575690 ): central widget, sidebar and bottom menu. So everything like in many gems where you have several slots and some of them have position: fixed; The problem is that all gridster widgets disturb and interfere with each other. For instance when I assign some params there they are applied everywhere and not only on selected widget panel. Are there any solutions for several widget panels?

P.S. I am not sure to what gridsterjs I should write about the issues. I see both of them (official one and your fork) are not very active and are still incompatible with each other, currently I use yours because it looks better but I suspect the official one has the same problems with many widget panels.

antonkulaga avatar May 14 '13 13:05 antonkulaga

Yeah, it is a bummer because the main project was abandoned by its creators. I have "more" than full-time work and a new baby, so alas gridster is last on my priority list. I am going to spend a couple hours on dustmoo fork issues this morning.

Are you trying to prevent some widgets from moving?

On Tue, May 14, 2013 at 6:11 AM, Anton Kulaga [email protected]:

I am trying to make several widgets on one page (i.e. https://gist.github.com/antonkulaga/5575690 ): central widget, sidebar and bottom menu. So everything like in many gems where you have several slots and some of them have position: fixed; The problem is that all gridster widgets disturb and interfere with each other. For instance when I assign some params there they are applied everywhere and not only on selected widget panel. Are there any solutions for several widget panels?

P.S. I am not sure to what gridsterjs I should write about the issues. I see both of them (official one and your fork) are not very active and are still incompatible with each other, currently I use yours because it looks better but I suspect the official one has the same problems with many widget panels.

— Reply to this email directly or view it on GitHubhttps://github.com/dustmoo/gridster.js/issues/13 .

dustmoo avatar May 14 '13 14:05 dustmoo

I want the widget panels to be situated in a right way. The problem is that I cannot create (at least I do not know how to do it right) three widget panels with different widget settings (in one cells are bigger, in another are smaller). The second problem is that I want to have some widget panels with fixed position so they will not move with scrolling (they will be used like scroll-independent user slot items), i tried to use position:fixed for the widgets but it does not work.

Yeah, it is a bummer because the main project was abandoned by its creators

Yes, situations is rather ambiguous. I do not know what to do with gridster: whether to keep using it or to move to more popular but less functional libs. From one side it has a lot of features that I need from the other without active community I will have to learn its code well and fix all the bugs that will occur there myself.

antonkulaga avatar May 14 '13 16:05 antonkulaga

My sentiments exactly. I have maintained it because it did almost everything I needed, but then I had to customize the rest. Stuff like this certainly makes you a better coder.

Have you tried changing the base style of the widgets for each panel? You can use the "draggable" option to specify the exact style that is draggable for each panel. Then you can limit your changes to a per-panel basis.

Thanks,

Dustin

On Tue, May 14, 2013 at 9:01 AM, Anton Kulaga [email protected]:

I want the widget panels to be situated in a right way. The problem is that I cannot create (at least I do not know how to do it right) three widget panels with different widget settings (in one cells are bigger, in another are smaller). The second problem is that I want to have some widget panels with fixed position so they will not move with scrolling (they will be used like scroll-independent user slot items), i tried to use position:fixed for the widgets but it does not work.

Yeah, it is a bummer because the main project was abandoned by its creators

Yes, situations is rather ambiguous. I do not what to do with gridster: whether to keep using it or to move to more popular but less functional libs. From one side it has a lot of features that I need from the other without active community I will have to learn its code well and fix all the bugs that will occur there myself.

— Reply to this email directly or view it on GitHubhttps://github.com/dustmoo/gridster.js/issues/13#issuecomment-17885974 .

dustmoo avatar May 14 '13 16:05 dustmoo

I have not looked deep into the code yet. Probably if I decide to do it I will fork the lib and convert it to coffeescript first because it is easier for me to work in coffeescript.

antonkulaga avatar May 14 '13 19:05 antonkulaga

We experienced a similar issue with https://github.com/ducksboard/gridster.js, which can be fixed with this patch: https://github.com/ducksboard/gridster.js/pull/273

myabc avatar Dec 06 '13 00:12 myabc