Comments (2)
Hi @alxx,
The automatic subpane styling is not super smart, so making style changes sometimes requires some fiddling. I think this should do the trick for you, I added status_pane.style('margin-right', '0px')
and buffer_pane.style('margin-left', '0px')
require 'flammarion'
require 'colorize'
f = Flammarion::Engraving.new
f.orientation = :vertical
top_pane = f.subpane('main')
top_pane.orientation = :horizontal
top_pane.style('border', '1px solid white')
top_pane.style('height', '200px')
status_pane = top_pane.subpane('status')
status_pane.style('border-right', '3px solid white')
status_pane.style('width', '40%')
status_pane.style('margin-right', '0px')
status_pane.puts "Status"
buffer_pane = top_pane.subpane('buffer')
buffer_pane.style('width', '60%')
buffer_pane.style('height', '180px')
buffer_pane.style('margin-left', '0px')
plot = buffer_pane.plot(Array.new(50).map{rand(10)}, {staticPlot: true})
Just in case you weren't aware, on most platforms you can press Ctrl+Shift+I to bring up a web developer interface, which will let you experiment with the styles without have to reopen Engravings.
Let me know if this helps with the issue you're having or not.
from flammarion.
That did solve things, thanks, I appreciate that. I didn't know about the console, though I should've imagined that it works much like Chrome (although the keystroke is different on a Mac: Cmd-Alt-I)
You should add a note in the README saying that some CSS knowledge is required :) as it's really not my strongest point. :)
By the way, speaking about the README, you may want to fix the typo in the line
require 'colorized'
which should be
require 'colorize'
Thanks again!
from flammarion.
Related Issues (20)
- Input form wonkiness
- Apps close exit after start HOT 2
- Dropdown arrow too dark
- Cygwin process won't exit after wait until closed
- Enable spell checker for electron
- Integrate Plotly
- f.map("Boston, MA") shows nothing on Windows HOT 7
- Subpane margin
- Does flammarion run on a MAC? HOT 6
- Save plot to svg HOT 1
- Flammarion::Plot.new shortcut
- phantomjs backend
- Semantic Versioning
- Remove redcarpet
- Callback errors
- Flammarion opens regular Chrome browser HOT 1
- Use better webview HOT 2
- Use onInput rather than onChange for Input / TextArea
- Crash when creating Engraving HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flammarion.