I am trying to create two tables and put them beside each other. Each table should shrink to the rectangle shown in green while maintaining the aspect ratio. However, it does not seem that this is the case. Replacing the table with a blind text seems to work well.
\documentclass[aspectratio=169, xcolor={x11names}]{beamer}
\usecolortheme{seahorse}
\useoutertheme{miniframes}
\useinnertheme{inmargin}
\usepackage{adjustbox}
\usepackage{ragged2e}
% ========== Table packages ==========
\usepackage{booktabs}
\usepackage{makecell}
\usepackage{multirow}
% ========== Equations and math packages ==========
\usepackage{amsmath}
\usepackage{amssymb, amsfonts}
\usepackage[defaultmathsizes, subdued, italic, symbolre, symbolmisc]{mathastext}
% BEGIN_FOLD
\MTDeclareVersion[it]{charter}{T1}{bch}{m}{n}
\AtBeginDocument{\MTversion*{charter}}
% END_FOLD
% Set margins
\newlength{\widthTextMarginLeftPageWide}
\setlength{\widthTextMarginLeftPageWide}{5mm}
\newlength{\widthTextMarginRightPageWide}
\setlength{\widthTextMarginRightPageWide}{5mm}
% Command to change margins for a page wide
\makeatletter
\newcommand{\framePageWide}{
\def\Gm@lmargin{\widthTextMarginLeftPageWide}%
\def\Gm@rmargin{\widthTextMarginRightPageWide}%
\textwidth=\dimexpr\paperwidth-\Gm@lmargin-\Gm@rmargin\relax
\hsize\textwidth
\columnwidth\textwidth
\hoffset=\dimexpr-\beamer@leftsidebar+\Gm@lmargin-\widthTextMarginLeftPageWide\relax
}
\makeatother
\begin{document}
\newcolumntype{q}[1]{>{\raggedright \arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{w}[1]{>{\centering \arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{e}[1]{>{\raggedleft \arraybackslash\hspace{0pt}}m{#1}}
{\framePageWide
\begin{frame}{Results}
\begin{adjustbox}{minipage={0.45\textwidth}, max totalsize={0.45\textwidth}{!}, cframe=SpringGreen3 0.3mm}
\begin{tabular}{w{2cm} @{\extracolsep{1mm}}|w{1.5cm} w{1.5cm} w{1.5cm}}
\toprule
\multirow{3}{=}{\centering System Size} & \multicolumn{3}{c}{Time Needed With Our Approach}
\\
& \multicolumn{3}{c}{(Extended Brown's Method)}
\\
\Xcline{2-4}{0.25mm}
& min & mean & max
\\
\Xhline{0.25mm}
200-bus & $3\times10^{-6}$ & $4.3\times10^{-6}$ & $5\times10^{-6}$
\\
2383-bus & $3\times10^{-6}$ & $3.8\times10^{-6}$ & $6\times10^{-6}$
\\
3120-bus & $3\times10^{-6}$ & $3.2\times10^{-6}$ & $4\times10^{-6}$
\\
\bottomrule
\end{tabular}
\end{adjustbox}
\hfill
\begin{adjustbox}{minipage={0.45\textwidth}, max totalsize={0.45\textwidth}{!}, cframe=SpringGreen3 0.3mm}
\begin{tabular}{w{2cm} @{\extracolsep{1mm}}|w{1.5cm} w{1.5cm} w{1.5cm}}
\toprule
\multirow{3}{=}{\centering System Size} & \multicolumn{3}{c}{Time Needed With}
\\
& \multicolumn{3}{c}{Conventional Brown's Method}
\\
\Xcline{2-4}{0.25mm}
& min & mean & max
\\
\Xhline{0.25mm}
200-bus & $0.089$ & $0.092$ & $0.1000$
\\
2383-bus & $163.8$ & $166.2$ & $172.5$
\\
3120-bus & $387.2$ & $398.8$ & $415.6$
\\
\bottomrule
\end{tabular}
\end{adjustbox}
\end{frame}
}
\end{document}



System Sizecolumn? Without it the table would most likely fit without the need to scale it. – leandriis Mar 21 '19 at 12:33