Open khromov opened 9 years ago
/** Blocks draggable (archive) **/
$('#blocks-archive > li.block').each(function() {
$(this).draggable({
connectToSortable: "#blocks-to-edit",
helper: 'clone',
revert: 'invalid',
start: function(event, ui) {
block_archive = $(this).attr('id');
},
drag: function( event , ui ){
ui.helper.css({
'height' : ''
});
}
});
});
Also comment out // Visual Editor Block in aqpb-blocks.js if you don't use the newest patch
Thanks Very much @partnuz
Its working like as charm :)
@WPsmart also there is a bug with column width first time you drag it ( When resizing column it won't fit until saved ). Does somebody want this code too ?
Ah i dint see that but until you say, do you have code for it? please post here, Thanks very very much for your help
Add
'width' : '290px',
under
'height' : ''
This will snap to aquabuilder grid every block.
@partnuz: thanks for your help - it does work! However, the "Visual Editor Block" is in aqpb-fields.js, there is no aqpb-blocks.js Also, in what file and where should I add the latest addition with "width: 290px"?
Where can I find the latest patch you were referring to?
Thanks
@pda1982 there is no official patch. Add width as property of ui.helper.css ( it's in the section i quoted above )
Some issues on a clean install of WP 4.1
Column widget seems to work poorly, they just bounce all over the place, drag handler sometimes moves the block to the incorrect position
The delete buttons for each colums also get misaligned after a while.
CSS issues with blocks
All regular blocks seem to have CSS issues.
More visual issues
JS Errors
Here's a JS error that I recently received:
Any thoughts on this, @syamilmj ?