02-10-2013 03:46 AM
I notice that the Blackberry 9900 screen dimension is 640 x 480, but when you test it out on the simulator or real blackberry 9900 device, the size of the screen shown in the emulator is obviously bigger than actual size of the device.
So how do I change it to the actual screen size?
Solved! Go to Solution.
02-11-2013 11:18 AM
What is the exact size on simulator/device (for you)? I'm wondering if this is for lack of the Bold 9900's css pixel ratio value in it's device spec, which can be used to approximate the css pixel width/height of a device. Unfortunately not all devices have had this data found and set... For example, it is set for the Galaxy Nexus device: https://github.com/blackberry/Ripple-UI/blob/maste
As for changing the actual screen size, you can not do it via any UI (at the moment), but if you want to hack the code yourself, the values to change are in this file:
Also, if you feel like a new feature suggestion or anything else along those lines (such as UI to do this or the virtual pixels so the css pixel ratio can be calculated), please feel free to create (or browser) issues here: :-)
02-12-2013 12:13 PM - edited 02-12-2013 07:42 PM
The screen size of the ripple emulator screen is like double of the actual device screen. From the config files u shown me, it seems that you can only change the resolution of the emulator, and not the screen size, but the problem is the screen size is not the same with actual device screen size. The resolution is the correct, because the size of the objects and forms is the same on both emulator and device. I'm not sure if its fixable or not. Thanks for the reply though. I think i'll just run it on a simulator. Thanks again. Cya
02-13-2013 01:56 PM
Thanks for the info. :-) For what it is worth, it is a web based simulator (for rapid development), so there are some restrictions. However, you should be able to adjust the screen size directly (which is what I pointed out), or add a css pixel ratio to calculate the similar (virtual) screen size that the browser creates, which would be around half the size of what the actual device width/height is, as you pointed out (unless I am missing something here). I'll look to try and fix this, and compare with the simulator. As an aside, sorry for the issues there, btw. There are only 2 of us on this project (at all), and we are spread very thin. :-(
02-13-2013 02:11 PM
Oh really? Its a cool emulator though, it's been a great help. Without ripple, I wouldn't get finish this application at all! Because actually I'm also having trouble loading my app into the simulator, maybe 9900 simulator on vista bug, I think.. Its just that, if its in the correct screen size as the actual device, I don't need to load it into my phone everytime I want to test out an interface. But other than that, its been great. Thanks for the emulator
As for your solution, if you said it could be changed in the .js, I think it should work, its just that i don't know where to replace the old .js of the emulator specific device. I'll try doing a search for the ripple emulator files first and try the solution. Thanks again and sorry for the trouble.
02-13-2013 02:17 PM
Ah... I'm not too sure if you can get into the signed Chrome Extension .crx file, but if you can, try and search for the device name ("Bold 9900" i think) in "ripple.js" (which is a large compiled file). For what it is worth, I also plan to create a feature for Ripple (in the near future) so you can manually adjust things like the CSS pixel ratio (and perhaps even the screen size) via the UI.
Thanks again for reporting/mentioning the issue (and kind words). Any feeback or help with bugs or features is always welcome!