Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
OrbTk-mirror
OrbTk-mirror
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • redox-os
  • OrbTk-mirrorOrbTk-mirror
  • Issues
  • #208

Closed
Open
Opened Nov 16, 2019 by Chris Cripple@JacobSinclair

Panics when height is greater than width

For example, the code

use orbtk::prelude::*;

fn main() {
	Application::new()
		.window(|ctx| {
			Window::create()
				.title("WiCom")
				.size(720.0, 1280.0)
				.child(TextBlock::create().text("OrbTk").build(ctx))
				.build(ctx)
		})
		.run();
}

panics with the following message:

thread 'main' panicked at 'attempt to subtract with overflow', /home/jacob/.cargo/registry/src/github.com-1ecc6299db9ec823/minifb-0.13.0/src/os/unix/mod.rs:278:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

I'm on Linux w/ x11

Update: I ran the "widgets" example and it seems to work fine, so I don't know what is going on

Edited Nov 16, 2019 by Chris Cripple
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: redox-os/orbtk-mirror#208