Get height of virtual keyboard in browser in Windows 8 Metro mode

I have an issue when using Internet Explorer 10 on a Windows 8 tablet in Metro mode. When visible the keyboard overlaps a part of the browser its content. In order to provide a good user experience I need to resize that content. And to do that I need the remaining height of the browser. Can someone point me in the right direction how to get the height of the virtual keyboard?

Answers


There is no way to get height of virtual keyboard in browser, but on IE 10 metro mode, you can use onresize event to get the available height (window.innerHeight) after the virtual keyboard is visible.

You can use the old height (when keyboard is non-visible) - new height (when keyboard is visible) to get the virtual keyboard height if you really need this.

remember, onresize event will not be fired if IE is in desktop mode when virtual keyboard is displayed.


Need Your Help

Fully Object Oriented framework in PHP

php frameworks oop

I want to create a 100% object oriented framework in PHP with no procedural programming at all, and where everything is an object. Much like Java except it will be done in PHP.

AngularJS: DI Error - No module: $facebook, why isn't working?

javascript angularjs dependency-injection

I've been trying to learn AngularJS by doing small exercises. At this point, I'd like to use the Facebook SDK and found a few ng services and I've been trying them all.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.