Mega2DNN Doesn't Calculate Width of Div Correctly

May 15, 2012 at 10:56 PM

<div class-"sub"... inline style written by the JavaScript isn't wide enough for all columns if adding padding and increasing the margins of the elements it contains.

Could there something wrong with the way I have modified the css that has caused this problem?

As a workaround I modified Mega2DNN.js to add a bit to the end:

jQuery(this).find(".sub").css({ 'width': biggestRow + 15});

This works for me, but I am unfamiliar with JavaScript and JQuery.   Is there a better way to resolve this issue?

Mar 14, 2015 at 8:54 AM
To increase the width you to use the !important property after the attribute value.