maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Percentages

You also need to resize the parent div element.

Appmos
Posts: 0
Joined: Thu Sep 06, 2012 1:26 pm

Percentages

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Percentages

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

Appmos
Posts: 0
Joined: Thu Sep 06, 2012 1:26 pm

Percentages

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Percentages

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.

Appmos
Posts: 0
Joined: Thu Sep 06, 2012 1:26 pm

Percentages

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Percentages

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

Appmos
Posts: 0
Joined: Thu Sep 06, 2012 1:26 pm

Percentages

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Percentages

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.

Return to “Issues”