Skip to content

Commit

Permalink
vaev-layout: Holiday cleanup, and some light refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Jan 6, 2025
1 parent 04ad56c commit cac036f
Show file tree
Hide file tree
Showing 27 changed files with 467 additions and 547 deletions.
2 changes: 1 addition & 1 deletion samples/general-ledger.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</div>
</header>

<div class="d-flex align-items-start">
<div class="align-items-start">
<table class="o_table ">

<thead id="table_header">
Expand Down
3 changes: 1 addition & 2 deletions src/web/vaev-driver/print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <vaev-layout/builder.h>
#include <vaev-layout/layout.h>
#include <vaev-layout/paint.h>
#include <vaev-layout/tree.h>
#include <vaev-layout/values.h>
#include <vaev-style/page.h>

Expand Down Expand Up @@ -327,7 +326,7 @@ Vec<Print::Page> print(Markup::Document const &dom, Print::Settings const &setti
};

contentTree.viewport = vp;
contentTree.fc.currSize = pageContent.size();
contentTree.fc = {pageContent.size()};

if (settings.headerFooter and settings.margins != Print::Margins::NONE)
_paintMargins(*pageStyle, pageRect, pageContent, *pageStack);
Expand Down
4 changes: 1 addition & 3 deletions src/web/vaev-driver/render.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

#include <karm-scene/base.h>
#include <vaev-base/length.h>
#include <vaev-layout/box.h>
#include <vaev-layout/frag.h>
#include <vaev-layout/tree.h>
#include <vaev-layout/base.h>
#include <vaev-markup/dom.h>
#include <vaev-style/media.h>

Expand Down
3 changes: 1 addition & 2 deletions src/web/vaev-layout/box.cpp → src/web/vaev-layout/base.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <karm-base/clamp.h>
#include <karm-text/loader.h>

#include "box.h"
#include "frag.h"
#include "base.h"

namespace Vaev::Layout {

Expand Down
Loading

0 comments on commit cac036f

Please sign in to comment.