File > Preferences > Editor > Dynamically Adjust... (if enabled) applies to nodes as you type in their label text. To adjust the size of a set of nodes in one go, Tools > Fit Node To Label would be the right tool. However, this tool only takes into account the first label of a node, i.e. it cannot find the proper size for class nodes that have additional labels for attributes and/or methods.