Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4111 Lượt xem

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());

});

}

Ảnh đại diện
Huỷ bỏ

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.

Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 16
5854
Theme Đã xử lý
2
thg 11 24
1784
0
thg 10 24
1036
0
thg 6 22
1627
3
thg 3 22
18620