Is it possible to change a size of whole component with all of it's controllers inside (like resizing window)

how to reduce the size of a component in sketchup
sketchup resize without scaling
scale tool | sketchup
how to resize objects from the 3d warehouse in google sketchup
sketchup change dimensions after drawing
how to change dimension size in sketchup
sketch up change length
sketchup change size of box

I have a component that looks fine with 100% browser resolution...

Some users asks to display it larger and some ask for it smaller. Of course it can be achieved by ctr + "+" / ctrl + "-" but I thought to implement a slider that the user can slide between 50% and 150% to change the size of the component as he see it suitable.

A sandbox that illustrate how the component looks like and how it's built: https://codesandbox.io/s/fragrant-morning-267l5

I think you can get it done by sizing with a percentage

I think you can implement a slider or something which at any end of it, it activates a class in your CSS, and by the class, you can use the width:x% which x is the amount of you want in any of that element

How to Resize Components in SketchUp, To create a component, select all of the edges and faces in an object or in a the same in Sketchup as when you are scaling any object or an entire model. The Scale tool is best when you want to change the size by a specific percentage. Specifying sizes of components. When you create a visible component in the designer, you are typically given the opportunity to specify its height and width. There are three choices: Automatic: Size is chosen by the system. Fill parent: Size is chosen to fill the space available. Size specified in pixels.

var sliderthing = document.getElementById("component");
var outputthing = document.getElementById("out");

sliderthing.oninput = function() {
  outputthing.style.width = this.value;
  outputthing.style.height = this.value;
}

Was this what you wanted?

Or, maybe, if you want to multiply it to get a zoom effect (put this on every component of your site):

var sliderthing = document.getElementById("component");
var outputthing = document.getElementById("out");

sliderthing.oninput = function() {
  outputthing.style.width = outputthing.style.width * this.value;
  outputthing.style.height = outputthing.style.height * this.value;
}

Building Resizeable Components with Relative CSS Units, The only way to resize the entire component proportionally, then, is to adjust the font-size of each element manually to match each other at a new size. There a two ways of scaling an object or body: Using the Direct Edit command in part environment to scale one body or multiple bodies Start Direct Edit command Select Scale option Make sure Uniform enabled Select body Enter scale factor Use a derived component to scale parts or whole assemblies

You can use zoom for this. Encapsule your module in a div to keep the boundaries.

Use with care since its not working in every Browser (thx @G-Cyr)

var $range = $('#myRangeSlider');
var $module = $('#myModule');
$range.on('input', function() {
  $module.css('zoom', $(this).val() + '%');
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>

<div class="container">
  <div class="row">
    <div class="col col-6">
      <input type="range" min="50" max="150" value="100" class="slider" id="myRangeSlider"/>
    </div>
    <div class="col col-6">
      <div id='myModule'>
      <form>
        <div class="form-group">
          <label for="exampleInputEmail1">Email address</label>
          <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
          <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
        </div>
        <div class="form-group">
          <label for="exampleInputPassword1">Password</label>
          <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
        </div>
        <div class="form-check">
          <input type="checkbox" class="form-check-input" id="exampleCheck1">
          <label class="form-check-label" for="exampleCheck1">Check me out</label>
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
      </form>
    </div>
  </div>
</div>

How to resize component instances � Figma, So basically my entire Glyph component which took DAYS to put in can also increase the size of the base icon using the scale tool - K. All� Is it possible to change partition size in Windows 10 without reinstalling OS. Is it safe to re-size partition and which tool is better to change allocated partition size. The answer is definitely yes. To change drive size on Windows 10, there are 2 options: Windows built-in Disk Management and third party partition editor software.

Scale all component states when scaling the instance – Adobe XD , There should be a way to select the whole button and resize all states, You could do this two ways, the first would be just allow a highlight of the in the Master component all other states will change to reflect that new size. The part goes to a large size as a default when it can't find the specific fastener size. If you are working in a group you have to have the toolbox files on a network drive so everyone can use the same files. Everyone in your group must have the settings pointing to the correct path. Put a password on toolbox so people can't change how it's setup.

Resizing elements within components should resize bounds , Give us the ability to re-size master components after we create them. Currently if you add/change anything outside of the master component initial size, it gets masked off with no way to resize the master (and then all the instances) of the component. It depends upon how long your columns might grow. Read about 'Is it possible to move an entire PCB design in the workspace?' on element14.com. In one of my early/still learning CS designs I managed to position the board shape at the absolute origin (0,0) instead of centered in the workspace.

Resizing Objects: Part 1- Whole Model vs. Just One Object, This is great if you want to size one object to match another, as I'll show in this simple example. In Part 2 of this series I'll show how resizing works differently for but if I use Tape Measure the same way, I'll change the hexagon as well. To make the hexagon a component, select the whole thing (face and� For this reason, it often does not make sense to specify a Swing component's exact size. If the component is not controlled by a layout manager, you can set its size by invoking the setSize or setBounds method on it. Otherwise, you need to provide size hints and then make sure you are using a layout manager that respects the size hints. If you extend a Swing component class, you can give size hints by overriding the component's getMinimumSize, getPreferredSize, and getMaximumSize methods.

Comments
  • ah, maybe you can create a setting in somewhere of the website which by activating it, you could change some styles and then size changes
  • For the whole component container or for each control inside it separately?
  • I don't think it's possible in terms the whole component, I can control the width/height... but controls inside will stay as is! That's was the point of my question... something that can squeeze the whole div or table root control with all of it's children, like resizing window works
  • Is This On Topic? The answer to your question is "yes". Beyond that, you are either asking for us to write code for you, opinion, or direct you to some library or other software somewhere, all of which are not allowed on SO.
  • you can change the width of the parent component using the slider and the by giving all of its children a width with a percentage they can change for good
  • font-size should be enough for the input + width for the parent
  • developer.mozilla.org/en-US/docs/Web/CSS/zoom maybe transform would be a better choice ;) , even if i think it is a bad idea, it only zooms at screen , not in the document flow ;)
  • transform+scale was my first shot too, but it will overflow. So why may it be a better choice? Sorry i dont get your point :D Edit: Oh compatibility, right, my bad - maybe i can improove it
  • i would go on width and font-size for the form elements . if it is build on grid (or similar behavior) , the column should resize without troubles. (i could not load its react link, so no idea what it is made of :( )
  • Yeh, but even if you know how it looks, you want the solution to work in the future aswell and we dont know how it looks in the future so we'd have to cover every possible element - but i have another idea, let me fiddle a bit :D
  • Added a note to the post ty @G-Cyr