Skip to content

NuiLayout #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 24, 2022
Merged

NuiLayout #120

merged 10 commits into from
Jun 24, 2022

Conversation

MunifTanjim
Copy link
Owner

@MunifTanjim MunifTanjim commented May 6, 2022

Resolves #18


local layout = Layout(
  {
    position = "50%",
    size = {
      width = 100,
      height = 20,
    },
  },
  Layout.Box({
    Layout.Box(popup1, { size = "20%" }),
    Layout.Box({
      Layout.Box(popup3, { size = "40%" }),
      Layout.Box(popup4, { size = "60%" }),
    }, { dir = "col", size = "60%" }),
    Layout.Box(popup2, { size = "20%" }),
  }, { dir = "row" })
)

layout:mount()

@MunifTanjim MunifTanjim added the tag: new feature :rocket: New Feature label May 6, 2022
@codecov
Copy link

codecov bot commented May 6, 2022

Codecov Report

Merging #120 (e7acc90) into main (0f590b7) will increase coverage by 2.62%.
The diff coverage is 98.73%.

@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
+ Coverage   90.93%   93.55%   +2.62%     
==========================================
  Files          13       15       +2     
  Lines        1401     1599     +198     
==========================================
+ Hits         1274     1496     +222     
+ Misses        127      103      -24     
Impacted Files Coverage Δ
lua/nui/layout/init.lua 98.15% <98.15%> (ø)
lua/nui/layout/utils.lua 100.00% <100.00%> (ø)
lua/nui/popup/border.lua 84.39% <100.00%> (+7.59%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f590b7...e7acc90. Read the comment docs.

@MunifTanjim MunifTanjim force-pushed the feat-layout branch 4 times, most recently from 9d68b3a to fe4f6e1 Compare June 17, 2022 09:14
@MunifTanjim MunifTanjim force-pushed the feat-layout branch 8 times, most recently from b1c8de9 to 604b558 Compare June 20, 2022 16:54
@MunifTanjim MunifTanjim marked this pull request as ready for review June 20, 2022 17:27
@MunifTanjim MunifTanjim force-pushed the feat-layout branch 2 times, most recently from af1f568 to fb93883 Compare June 24, 2022 08:15
@MunifTanjim MunifTanjim merged commit 1b3e9ec into main Jun 24, 2022
@MunifTanjim MunifTanjim deleted the feat-layout branch June 24, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: new feature :rocket: New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helper for creating Complex Layouts
1 participant