src/cm/media/js/site/text_view_to_frame.js
author gibus
Wed, 11 Sep 2013 23:13:01 +0200
changeset 532 0bad3613f59d
parent 341 053551f213fb
permissions -rw-r--r--
Reverse to YUI 3.0.0 since with YUI.3.10.3, comment content including words 'paragraph' or 'section' do not show up on Firefox, this is weird and has to be investigated.
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