works
This commit is contained in:
parent
60fcb24f35
commit
07c47775b3
@ -2121,7 +2121,8 @@
|
|||||||
imgExpand = {
|
imgExpand = {
|
||||||
init: function() {
|
init: function() {
|
||||||
g.callbacks.push(imgExpand.cb.node);
|
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: {
|
cb: {
|
||||||
node: function(root) {
|
node: function(root) {
|
||||||
@ -2416,10 +2417,7 @@
|
|||||||
}\
|
}\
|
||||||
body.fitwidth img[md5] + img {\
|
body.fitwidth img[md5] + img {\
|
||||||
max-width: 100%;\
|
max-width: 100%;\
|
||||||
}\
|
width: -moz-calc(100%); /* hack so only firefox sees this */\
|
||||||
body.fitheight img[md5] + img {\
|
|
||||||
/* FIXME max height = height of thread. we want height of viewport */\
|
|
||||||
max-height: 100%;\
|
|
||||||
}\
|
}\
|
||||||
\
|
\
|
||||||
iframe {\
|
iframe {\
|
||||||
|
|||||||
@ -1637,6 +1637,8 @@ imgExpand =
|
|||||||
init: ->
|
init: ->
|
||||||
g.callbacks.push imgExpand.cb.node
|
g.callbacks.push imgExpand.cb.node
|
||||||
imgExpand.dialog()
|
imgExpand.dialog()
|
||||||
|
#FIXME add a resize listener
|
||||||
|
$.addStyle "body.fitheight img[md5] + img { max-height: #{d.body.clientHeight}px }"
|
||||||
|
|
||||||
cb:
|
cb:
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
@ -1887,10 +1889,7 @@ main =
|
|||||||
}
|
}
|
||||||
body.fitwidth img[md5] + img {
|
body.fitwidth img[md5] + img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
width: -moz-calc(100%); /* hack so only firefox sees this */
|
||||||
body.fitheight img[md5] + img {
|
|
||||||
/* FIXME max height = height of thread. we want height of viewport */
|
|
||||||
max-height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe {
|
iframe {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user