Tuesday, November 15, 2011

WebOS Calculator

I made a simple calculator for the WebOS platform. I know I definitely enjoyed it a lot more than when I did that first app because instead of having to use the emulator, I got to test and run it on an actual HP touchpad (thank you husband for wanting one :)) It was a lot better than using the emulator plus it's hands on.

The only problem I'm having is trying to manipulate the height of the buttons to be relative to the full screen... I got the width working correctly but not the height.  Currently I'm changing the font-size and not the actual height. But as you can see from the screen shots below it would be better to adjust the height relative to the total space available.

Currently I just created a class style in my .css file here's what it looks like:
#buttons
{
   font-size: 400%;
   width: 24%
}


I've tried height: 20% but it does absolutely nothing...

Portrait

Landscape















So all in all, besides the fact that it's purely javascript and html, I actually enjoyed getting something done tonight. Granted it does next to nothing but still it works, and that's really all I care about right now.

//END OF LINE

No comments:

Post a Comment