Hey Bubble fellows, i’m stuck in something. i’am create an plugin and i need that div have an fixed height and width, i try to put the code below on Intialize
function(instance, context) {
var div;
div = $('<div id="calendar"></div>')
div.css({width: '1312px', height: '650px'});
instance.canvas.append(div)
instance.data.div = div
}
But didn’t work. I trying to put an CSS on “header” and use the selector to select the id but still didn’t work! Give-me some advice, i’m feel that i don’t see small detail. Thanks to everyone!!
I just tested your original code and it works. I have a single element on the page (from a plugin) and I copied and pasted your code into the plugin and added it to an empty page. You can see from inspector it created the element on the page with the width specified without any issue.
I suspect something else is causing the problem (not the code above).