make sexypolls fluid

Find out what does your audience think

make sexypolls fluid

New postby gregpich » Sun May 12, 2013 8:39 pm

hi,
is it possible to make sexypolls fluid? I use sexypolls in a bootstrap template, and I'd like to make it fluid. It always adds wrapper width in px in div polling_container_wrapper, and I can't find where it does that. When I test it in google chrome turning off this element style, it works !
thanks for your help !
Greg
gregpich
 
Posts: 6
Joined: Mon May 06, 2013 1:49 am

Re: make sexypolls fluid

New postby Simon » Sun May 12, 2013 9:21 pm

Hi,

Could you explain more detailed what you try to achieve?
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: make sexypolls fluid

New postby gregpich » Sun May 12, 2013 9:40 pm

Hi Simon,
I'm trying to make div polling_container_wrapper resizeable.
You can see what is going wrong with the poll at the end of the page at :
http://gregpich.com/j259/ log with id : ce-guest, pwd : 123 and resize your browser window by reducing it width.
I quess I just have to remove the added element style width:xxx px, but I can't find where it's added. If you inspect the element (with chrome or firefox) and turn off it width, then resize again, you'll see it's ok.
gregpich
 
Posts: 6
Joined: Mon May 06, 2013 1:49 am

Re: make sexypolls fluid

New postby Simon » Sun May 12, 2013 10:01 pm

Hi Greg,

It adds inline css via javascript, and it's very important part, because without it the reordering animation can not work properly. So unfortunately you can not make it resizeable.

Best regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: make sexypolls fluid

New postby gregpich » Mon May 13, 2013 12:27 am

ok Simon,
thank you for your answer. I edit the js file to prevent the addition of style in the container and it's ok, it looks like what i want, except when you're in answer mode, of course div "answer_navigation polling_bar_x" don't resize. I think with a resize event that reverts to question it will be ok. Thanks again (excuse for my english which doesn't clarify things 8-) )
gregpich
 
Posts: 6
Joined: Mon May 06, 2013 1:49 am

Re: make sexypolls fluid

New postby Simon » Mon May 13, 2013 12:34 am

I'm happy that it works fine for you.

In many cases it causes a conflict, that is why I added that part in s file.

Best Regrads,
Simon


P.S How you edited obfuscated javascript file? :)
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: make sexypolls fluid

New postby gregpich » Mon May 13, 2013 12:56 am

done ! (write a review in JED! but I can't see it yet)

I've just changed the class name that I've found in the js file (polling_container_wrapper in polling_container_wrapper_sleep ;))
gregpich
 
Posts: 6
Joined: Mon May 06, 2013 1:49 am

Re: make sexypolls fluid

New postby Simon » Mon May 13, 2013 1:28 am

Thank you.
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm


Return to Sexy Polling

Who is online

Users browsing this forum: No registered users and 2 guests

cron