跳至內容
選單
此問題已被標幟
2 回覆
4053 瀏覽次數

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
5793
Theme 已解決
2
11月 24
1312
0
10月 24
941
0
6月 22
1558
3
3月 22
18478