Loading src/webedit/grid/grid.cpp +2 −1 Changes for src/webedit/grid/grid.cpp: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -527,7 +527,7 @@ extern "C" { // Unique CSS class for responsive targeting std::string responsiveClass = std::string("we-") + getInstanceId().c_str(); std::string style = "display: grid;"; std::string style = "display: grid; box-sizing: border-box; min-width: 0;"; style += " grid-template-columns: " + columns + ";"; style += " grid-template-rows: " + rows + ";"; style += " gap: " + gap + ";"; Loading Loading @@ -621,6 +621,7 @@ extern "C" { const EditPlugin *cur = child; while (cur) { libhtmlpp::HtmlElement cell("div"); cell.setAttribute("style", "min-width: 0; box-sizing: border-box;"); cur->Render(cell); grid.appendChild(cell); cur = cur->nextElement(); Loading src/webedit/slider/slider.cpp +2 −2 Changes for src/webedit/slider/slider.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -387,11 +387,11 @@ extern "C" { const EditPlugin *cur = child; while (cur) { libhtmlpp::HtmlElement slide("div"); std::string slideStyle = "width: 100%; flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; -webkit-user-drag: none; touch-action: pan-y; user-select: none; box-sizing: border-box;"; std::string slideStyle = "width: 100%; flex: 0 0 100%; height: 100%; position: relative; overflow-x: hidden; overflow-y: auto; -webkit-user-drag: none; touch-action: pan-y; user-select: none; box-sizing: border-box;"; if (transition == "fade") { slideStyle = "position: absolute; top: 0; left: 0; width: 100%; height: 100%;" " opacity: 0; transition: opacity 0.5s ease-in-out;" " overflow: hidden; -webkit-user-drag: none; touch-action: pan-y; user-select: none;"; " overflow-x: hidden; overflow-y: auto; -webkit-user-drag: none; touch-action: pan-y; user-select: none; box-sizing: border-box;"; } slide.setAttribute("style", slideStyle.c_str()); slide.setAttribute("class", (cls + "-slide").c_str()); Loading Loading
src/webedit/grid/grid.cpp +2 −1 Changes for src/webedit/grid/grid.cpp: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -527,7 +527,7 @@ extern "C" { // Unique CSS class for responsive targeting std::string responsiveClass = std::string("we-") + getInstanceId().c_str(); std::string style = "display: grid;"; std::string style = "display: grid; box-sizing: border-box; min-width: 0;"; style += " grid-template-columns: " + columns + ";"; style += " grid-template-rows: " + rows + ";"; style += " gap: " + gap + ";"; Loading Loading @@ -621,6 +621,7 @@ extern "C" { const EditPlugin *cur = child; while (cur) { libhtmlpp::HtmlElement cell("div"); cell.setAttribute("style", "min-width: 0; box-sizing: border-box;"); cur->Render(cell); grid.appendChild(cell); cur = cur->nextElement(); Loading
src/webedit/slider/slider.cpp +2 −2 Changes for src/webedit/slider/slider.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -387,11 +387,11 @@ extern "C" { const EditPlugin *cur = child; while (cur) { libhtmlpp::HtmlElement slide("div"); std::string slideStyle = "width: 100%; flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; -webkit-user-drag: none; touch-action: pan-y; user-select: none; box-sizing: border-box;"; std::string slideStyle = "width: 100%; flex: 0 0 100%; height: 100%; position: relative; overflow-x: hidden; overflow-y: auto; -webkit-user-drag: none; touch-action: pan-y; user-select: none; box-sizing: border-box;"; if (transition == "fade") { slideStyle = "position: absolute; top: 0; left: 0; width: 100%; height: 100%;" " opacity: 0; transition: opacity 0.5s ease-in-out;" " overflow: hidden; -webkit-user-drag: none; touch-action: pan-y; user-select: none;"; " overflow-x: hidden; overflow-y: auto; -webkit-user-drag: none; touch-action: pan-y; user-select: none; box-sizing: border-box;"; } slide.setAttribute("style", slideStyle.c_str()); slide.setAttribute("class", (cls + "-slide").c_str()); Loading