assets/js/dasht.js in dasht-0.1.1 vs assets/js/dasht.js in dasht-0.1.2
- old
+ new
@@ -27,16 +27,16 @@
Dasht.init = function() {
Dasht.scale_fontsize_loop();
Dasht.process_pending_requests_loop();
}
-Dasht.fill_tile = function(el, do_width = true, do_height = true) {
+Dasht.fill_tile = function(el, do_width, do_height) {
var parent = $(el).parent();
- if (do_width) {
+ if (do_width || do_width == undefined) {
var marginsize = parseInt($(el).css("margin-left")) + parseInt($(el).css("margin-right"));
$(el).outerWidth(parent.width() - marginsize);
}
- if (do_height) {
+ if (do_height || do_height == undefined) {
var marginsize = parseInt($(el).css("margin-top")) + parseInt($(el).css("margin-bottom"));
$(el).outerHeight(parent.height() - marginsize);
}
}