BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-16-2009, 09:41 PM   #1 (permalink)
New Member
 
Join Date: Dec 2009
Model: 8530
PIN: N/A
Carrier: verizon
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Browser Javascript getComputedStyle returns auto?

Please Login to Remove!

In most other browsers, the getComputedStyle(el,pseudoel).getPropertyValue function returns a numeric pixel value when called with 'height' or 'width', but the BlackBerry browser instead returns 'auto'. I need this value to do dynamic resizing (mostly a toggle between height:100% and width:100% to preserve the aspect ratio). The image in question sits inside a div inside another div with style='position:fixed;top:0;bottom:0;left:0;right: 0;'.

I'm open to solutions that don't necessarily involve getting the numeric value I'm after, but it does need to properly scale the image to fullscreen. There are other elements in the image's parent div that affect page flow, so the full visible-element height is the sum of the image and two other sibling elements.

Thanks!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

33X Microchip AT93C46-10SI IC EEPROM 1KBIT 2MHZ 8SOIC
$10.99
33X Microchip AT93C46-10SI IC EEPROM 1KBIT 2MHZ 8SOIC picture21X Microchip 93C46B/SN IC EEPROM 1KBIT 2MHZ 8SOIC
$10.99
21X Microchip 93C46B/SN IC EEPROM 1KBIT 2MHZ 8SOIC pictureB & C Microsystems PROTEUS EEPROM Programmer w/ AMUPLC84 Module #100
$199.95
B & C Microsystems PROTEUS EEPROM Programmer w/ AMUPLC84 Module #100 pictureEZP2010 High-Speed USB SPI Programmer Support24 25 93 EEPROM 25 Flash Bios Chip
$17.02
EZP2010 High-Speed USB SPI Programmer Support24 25 93 EEPROM 25 Flash Bios Chip picture25 PCS EEPROM Memory IC 4Kb (512 x 8) SPI 3MHz 8-SOIC 25C040/SN-ND
$12.0
25 PCS EEPROM Memory IC 4Kb (512 x 8) SPI 3MHz 8-SOIC 25C040/SN-ND picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.