Tuesday, February 19th, 2008

Jack is back: Ext for Air and Vista

Category: Examples, Sencha

Jack had posted a couple of entries back to back in the world of Ext.

First, he has been playing with Air again, and quickly wrapped the Ext 2.0 docs in Air, which would have been helpful when I was hacking the Ext toy on the plane:

Second, he has been playing with Vista gadgets and Ext and created a forum watcher that has the following gadget special code:

javascript

  1. function changeDock(){
  2.     if(System.Gadget.docked){
  3.         System.Gadget.background = 'images/docked.png';
  4.         var bd = Ext.getBody();
  5.         bd.setSize(130, 250);
  6.         bd.addClass('docked');
  7.         cm.setHidden(1, true);
  8.         cm.setRenderer(0, renderTopicMini);
  9.         grid.setPosition(4, 4);
  10.         grid.setSize(121, 241);
  11.         toggleDetails(null, false);
  12.     }else{
  13.         System.Gadget.background = 'images/undocked2.png';
  14.         var bd = Ext.getBody();
  15.         bd.setSize(528, 383);
  16.         bd.removeClass('docked');
  17.         cm.setHidden(1, false);
  18.         cm.setRenderer(0, renderTopic);
  19.         grid.setPosition(14, 14);
  20.         grid.setSize(494, 349);
  21.         cm.setColumnWidth(0, 350);
  22.         toggleDetails(null, true);
  23.     }
  24. }
  25.  
  26. System.Gadget.onUndock = changeDock;
  27. System.Gadget.onDock = changeDock;

Posted by Dion Almaer at 5:27 am
2 Comments

++++-
4.4 rating from 51 votes

2 Comments »

Comments feed TrackBack URI

Jack I love u !

Comment by devil1591 — February 19, 2008

Oh, so you were the guy shouting “Enough is enough! I have had it with these MFing IE7 CSS hacks on this MFing plane!”? :-)

Comment by Andy Stevens — February 20, 2008

Leave a comment

You must be logged in to post a comment.