mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-15 21:31:03 +00:00
graphview: fix the zoom factor for node
Remove to apply zoom factor on node avoiding weired zoom effect on node.
This commit is contained in:
parent
37f04b681f
commit
4198b99b83
1 changed files with 2 additions and 4 deletions
|
@ -409,8 +409,6 @@ mod imp {
|
|||
fn size_allocate(&self, _width: i32, _height: i32, baseline: i32) {
|
||||
let widget = &*self.obj();
|
||||
|
||||
let zoom_factor = self.zoom_factor.get();
|
||||
|
||||
for (node, point) in self.nodes.borrow().values() {
|
||||
let (_, natural_size) = node.preferred_size();
|
||||
|
||||
|
@ -419,8 +417,8 @@ mod imp {
|
|||
.translate(point);
|
||||
|
||||
node.allocate(
|
||||
(natural_size.width() as f64 * zoom_factor).ceil() as i32,
|
||||
(natural_size.height() as f64 * zoom_factor).ceil() as i32,
|
||||
natural_size.width(),
|
||||
natural_size.height(),
|
||||
baseline,
|
||||
Some(transform),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue