This commit is contained in:
James Campos 2011-05-17 01:56:13 -07:00
parent 60fcb24f35
commit 07c47775b3
2 changed files with 6 additions and 9 deletions

View File

@ -2121,7 +2121,8 @@
imgExpand = {
init: function() {
g.callbacks.push(imgExpand.cb.node);
return imgExpand.dialog();
imgExpand.dialog();
return $.addStyle("body.fitheight img[md5] + img { max-height: " + d.body.clientHeight + "px }");
},
cb: {
node: function(root) {
@ -2416,10 +2417,7 @@
}\
body.fitwidth img[md5] + img {\
max-width: 100%;\
}\
body.fitheight img[md5] + img {\
/* FIXME max height = height of thread. we want height of viewport */\
max-height: 100%;\
width: -moz-calc(100%); /* hack so only firefox sees this */\
}\
\
iframe {\

View File

@ -1637,6 +1637,8 @@ imgExpand =
init: ->
g.callbacks.push imgExpand.cb.node
imgExpand.dialog()
#FIXME add a resize listener
$.addStyle "body.fitheight img[md5] + img { max-height: #{d.body.clientHeight}px }"
cb:
node: (root) ->
@ -1887,10 +1889,7 @@ main =
}
body.fitwidth img[md5] + img {
max-width: 100%;
}
body.fitheight img[md5] + img {
/* FIXME max height = height of thread. we want height of viewport */
max-height: 100%;
width: -moz-calc(100%); /* hack so only firefox sees this */
}
iframe {