src/cm/media/js/site/text_view_to_frame.js
author gibus
Tue, 30 Nov 2010 09:53:35 +0100
changeset 341 053551f213fb
parent 0 40c8f766c9b8
permissions -rw-r--r--
Coding style for js: expand tabs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
v_toggleFrameSize = function() {
341
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
     2
  if (gInFullScreen)
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
     3
    _toNormalSize() ;
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
     4
  else 
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
     5
    _toFullScreenSize() ;
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
//v_toNormalSize = function() {
341
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
     9
//  _toNormalSize() ;
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
//}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
//
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
v_toInitialSize = function() {
341
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
    13
  _toInitialSize() ;
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
    14
  $(window).resize(function(){
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
    15
//    console.log('before setFramesize in top resize winwidth' +  frames['text_view_frame'].frames['text_view_comments'].CY.DOM.winWidth()) ;
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
    16
    _setFrameSize();
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
    17
//    console.log('after setFramesize in top resize winwidth' +   frames['text_view_frame'].frames['text_view_comments'].CY.DOM.winWidth()) ;
053551f213fb Coding style for js: expand tabs
gibus
parents: 0
diff changeset
    18
  });
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    19
}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    20
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    21