prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Javascript for image sizing stopped working

Hi,

Suddenly the java script to adjust image based on screen size stopped working. This has happenned after upgrade. Pls suggest.

Regds

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Javascript for image sizing stopped working

Hello! Could you post code which doesn't work and tell us where you use it?

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Javascript for image sizing stopped working

Hi,

I use the below code to adjust the iamge size too 100% of container size. I am using this on splash screen of my application:

Appery('mobileimage_47').width('100%').height('100%');

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Javascript for image sizing stopped working

Hi,

Any update on the issue please

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Javascript for image sizing stopped working

Not yet, sorry. Working on it.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Javascript for image sizing stopped working

Hi Prashant,

The Dimension set for the Image component has a higher priority. Try the following: preAppery('mobileimage_6').attr("style", "width: 100% !important; height: 100% !important;");/pre

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Javascript for image sizing stopped working

Thanks...It worked

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

Javascript for image sizing stopped working

I have the same problem since last update, the "important" key word didn't work for me, this is my code:

code
Appery('img_wait').show();

Code: Select all

 Appery('img_wait').css('position','absolute'); 

 Appery('img_wait').css('width','100% !important'); 
 Appery('img_wait').css('height','100% !important'); 

 Appery('img_wait').css('margin', 'auto'); 
 Appery('img_wait').css('align', 'center');  
 Appery('img_wait').css('top', '-20px');  
 Appery('img_wait').css('left', '-2px');  

 Appery('img_wait').css('z-index','99999');   
 Appery('img_wait').refresh(); 

 $(".ui-page").triggerHandler('updatelayout'); 

/code

pls advice,

Thx much in advance!!
Best,
R.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Javascript for image sizing stopped working

Hi Ram, we'll check what may cause it, for now you can use workaround that Katya suggested.

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

Javascript for image sizing stopped working

Dear Alena,
thank you for your reply.

i tried Katya's workaround and that too didnt work...

Return to “Issues”