Changeset 28157

Show
Ignore:
Timestamp:
01/08/09 13:24:04 (5 years ago)
Author:
lieutar
Message:

added "KaeL.DHTML.Window.getScrollbarWidth"

Location:
lang/javascript/dollar-mod.js/KaeL.DHTML/trunk
Files:
2 added
2 removed
3 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/dollar-mod.js/KaeL.DHTML/trunk/lib/KaeL/DHTML/META.js

    r28060 r28157  
    22{ 
    33 NAME: 'KaeL.DHTML.META', 
    4  VERSION: '0.061' 
     4 VERSION: '0.07' 
    55} 
    66); 
  • lang/javascript/dollar-mod.js/KaeL.DHTML/trunk/lib/KaeL/DHTML/Window/getSize.js

    r27651 r28157  
    33 NAME: 'KaeL.DHTML.Window.getSize', 
    44 VERSION: '0.01', 
    5  USE: ['KaeL.Commons.Util.AGENT'] 
     5 USE: ['KaeL.Commons.Util.AGENT', 
     6       'KaeL.DHTML.Window.getScrollbarWidth'] 
    67}, 
    7 function(AGENT){ 
     8function(AGENT, 
     9         getScrollbarWidth){ 
    810  switch(AGENT.NAME){ 
    911 
     
    1113    if(document.compatMode == 'BackCompat'){ 
    1214 
    13       return function(win){ 
     15      return function(win, opt){ 
     16        opt = opt || {}; 
    1417        var doc = (win || window).document; 
    1518        return { width: doc.body.clientWidth, 
     
    1922    } else { 
    2023 
    21       return function(win){ 
     24      return function(win, opt){ 
     25        opt = opt || {}; 
    2226        var doc = (win || window).document; 
    2327        return { width: doc.documentElement.clientWidth, 
     
    2933  } 
    3034 
    31   return function(win){ 
     35  return function(win, opt){ 
     36    opt = opt || {}; 
    3237    win = win || window; 
    33     return { width: win.innerWidth, 
    34                       height: win.innerHeight} 
     38    var width  = win.innerWidth; 
     39    var height = win.innerHeight; 
     40    return { width: width, 
     41            height: height} 
    3542  }; 
    3643 
  • lang/javascript/dollar-mod.js/KaeL.DHTML/trunk/tests/index.html

    r28060 r28157  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
    2          "http://www.w3.org/TR/html4/strict.dtd"> 
    3 <html lang="ja"> 
     1<!doctype html> 
     2<html> 
    43<head> 
    5 <meta name="$mod.DEBUG" content="false"> 
     4<meta name="%24mod.DEBUG" content="false"> 
    65<title>KaeL.DHTML</title> 
    76<script type="text/javascript" src="../lib/dollar-mod.js"></script> 
     
    98 
    109$mod.withModule("site.pathconfig", function(){ 
    11  $mod.withModule("KaeL.Test.runtests", function(runtests){ 
    12    runtests( 
     10  $mod.withModule("KaeL.Test.runtests", function(runtests){ 
     11    runtests( 
    1312"./KaeL.DHTML.Color.read.t.js", 
    1413"./KaeL.DHTML.Color.write.t.js", 
     
    3938"./KaeL.DHTML.Window.addEventListener.t.js", 
    4039"./KaeL.DHTML.Window.getRectangle.t.js", 
     40"./KaeL.DHTML.Window.getScrollbarWidth.t.js", 
    4141"./KaeL.DHTML.Window.getScrolledPosition.t.js", 
    4242"./KaeL.DHTML.Window.getSize.t.js", 
    4343"./KaeL.DHTML.Window.removeEventListener.t.js" 
    44 )})}); 
     44);});}); 
    4545</script> 
    4646</head>