We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b185941 commit ef6be0dCopy full SHA for ef6be0d
web_src/js/features/imagediff.js
@@ -256,9 +256,11 @@ export function initImageDiff() {
256
height: sizes.size2.height * factor + 2
257
});
258
259
+ // some inner elements are `position: absolute`, so the container's height must be large enough
260
+ // the "css(width, height)" is somewhat hacky and not easy to understand, it could be improved in the future
261
sizes.image2.parent().parent().css({
262
width: sizes.max.width * factor + 2,
- height: sizes.max.height * factor + 2 + 20,
263
+ height: sizes.max.height * factor + 2 + 20 /* extra height for inner "position: absolute" elements */,
264
265
266
const $range = $container.find("input[type='range']");
0 commit comments