跳至内容
菜单
此问题已终结
2 回复
4025 查看

If you install website_less for theme_clean or other themes, no horizontal element placement / sorting is possible. The css class oe_vertical is not added to the columns.

The Problem is in the javascript file "website.snippets.editor.js" in Line 532

var float = window.getComputedStyle(this).float;

float is undefined, but it should be left or right.

if(child_selector){

self.$wrapwrap.find(child_selector).each(function (){

var $zone = $(this);

var vertical;

var float = window.getComputedStyle(this).float;

if (float === "left" || float === "right") {

vertical = $zone.parent().outerHeight()+'px';

}

var $drop = zone_template.clone();

if (vertical) {

$drop.addClass("oe_vertical").css('height', vertical);

}

$zone.find('> *:not(.oe_drop_zone):visible').after($drop);

$zone.prepend($drop.clone());

});

}

形象
丢弃

Can you please explain, what that means practically? As a 50 Themes Pack Supporter heavily using different themes for different customers, I'm very interested in it.

编写者 最佳答案

if you compare the odoo default theme behavior

https://www.dropbox.com/s/yloyf41gcizsay9/default-theme.jpg?dl=0

for example with the clean_theme behavior

https://www.dropbox.com/s/66kr1gus226tkjf/clean-theme.jpg?dl=0

you see that horizontal ordering isn´t possible.

形象
丢弃
相关帖文 回复 查看 活动
1
7月 16
5767
Theme 已解决
2
11月 24
1291
0
10月 24
917
0
6月 22
1537
3
3月 22
18413