diff --git a/docs/example_wasm.js b/docs/example_wasm.js index 7ae25ea1..ae026802 100644 --- a/docs/example_wasm.js +++ b/docs/example_wasm.js @@ -177,13 +177,12 @@ function getInt32Memory0() { } /** * @param {string} canvas_id -* @param {number} pixels_per_point * @returns {State} */ -__exports.new_webgl_gui = function(canvas_id, pixels_per_point) { +__exports.new_webgl_gui = function(canvas_id) { var ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); var len0 = WASM_VECTOR_LEN; - var ret = wasm.new_webgl_gui(ptr0, len0, pixels_per_point); + var ret = wasm.new_webgl_gui(ptr0, len0); return State.__wrap(ret); }; diff --git a/docs/example_wasm_bg.wasm b/docs/example_wasm_bg.wasm index 26385950..95115df1 100644 Binary files a/docs/example_wasm_bg.wasm and b/docs/example_wasm_bg.wasm differ diff --git a/docs/index.html b/docs/index.html index 18fab35f..0e591f3b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -57,7 +57,7 @@ function paint_gui(canvas) { if (g_wasm_app === null) { - g_wasm_app = wasm_bindgen.new_webgl_gui("canvas", pixels_per_point()); + g_wasm_app = wasm_bindgen.new_webgl_gui("canvas"); } let input = { diff --git a/egui/Cargo.toml b/egui/Cargo.toml index 8b75c1da..bf38d4b0 100644 --- a/egui/Cargo.toml +++ b/egui/Cargo.toml @@ -1,9 +1,16 @@ [package] name = "egui" version = "0.1.0" -authors = ["Emil Ernerfeldt "] -license = "MIT OR Apache-2.0" +authors = ["Emil Ernerfeldt "] +description = "Simple, portable immediate mode GUI library for Rust" edition = "2018" +homepage = "https://github.com/emilk/emigui/" +license = "MIT OR Apache-2.0" +readme = "../README.md" +repository = "https://github.com/emilk/emigui" +categories = ["gui", "graphics"] +keywords = ["gui", "imgui", "immediate", "portable", "gamedev"] +include = [ "**/*.rs", "Cargo.toml", "fonts/ProggyClean.ttf", "fonts/Comfortaa-Regular.ttf"] [lib] diff --git a/egui/src/containers/window.rs b/egui/src/containers/window.rs index 60c95b76..e92cde97 100644 --- a/egui/src/containers/window.rs +++ b/egui/src/containers/window.rs @@ -203,8 +203,8 @@ impl<'open> Window<'open> { let content_rect = collapsing .add_contents(&mut frame.content_ui, |ui| { resize.show(ui, |ui| { - // Add some spacing (item_spacing) between title and content: - ui.allocate_space(Vec2::zero()); + // Add some spacing between title and content: + ui.allocate_space(ui.style().item_spacing); if let Some(scroll) = scroll { scroll.show(ui, add_contents)