Page 2 of 2

Percentages

Posted: Tue Sep 18, 2012 6:28 pm
by maxkatz

You also need to resize the parent div element.


Percentages

Posted: Tue Sep 18, 2012 7:03 pm
by Appmos

The container, right? I need to insert the name of the class (resize) in the class name field, correct? If yes, I've done that and it didn ́t work


Percentages

Posted: Tue Sep 18, 2012 7:08 pm
by maxkatz

You can increase the container size like this, on page load:
$('.mobileimageX_div').css('width', '200');


Percentages

Posted: Tue Sep 18, 2012 7:25 pm
by Appmos

I applied a custom JavaScript with code that you suggested, to run after loading the screen, but nothing happens. I can ́t understand why not have options to resize elements inside the panel using percentage values. It seems that just me that I need this feature. It ́s very hard for very little. Anyway, thank you by the effort.


Percentages

Posted: Tue Sep 18, 2012 7:30 pm
by maxkatz

This is my class:
code
.resize {
width: 100% !important;
}
/code

and this is what I run on page load:
code
$('.mobileimage1_div').css('width', '200');
/code

the image number above for you might be different, you need to look in the source.


Percentages

Posted: Tue Sep 18, 2012 8:01 pm
by Appmos

Is the same name and the same way that I did (custom javascript = screen load event)


Percentages

Posted: Tue Sep 18, 2012 8:35 pm
by maxkatz

You should debug with Firebug or Chrome Developer Tools -- and see why it's not working.


Percentages

Posted: Wed Sep 19, 2012 11:33 am
by Appmos

Could you create a simple example, a single screen with half of it with a image and another half with a video, both resizable? So I could import to my panel and study this example. This way would be easier to understand the procedure and I could apply it to all my projects.


Percentages

Posted: Wed Sep 19, 2012 4:21 pm
by maxkatz

You can change size but it won't be automatically resizable. To change size automatically, you would need to determine screen size in runtime and update the components accordingly.