Well, one gallon is 231 cubic inches. To find the volume of the tray, we need to multiply length by width by height. First we notice that the height is 7 centimeters so we have to convert it to inches. 7 centimeters equals 2.75591 inches. Now we multiply 10*10*2.75591=275.591 which means the tray can hold about 276 cubic inches of paint. Well 231 cubic inches can fit into 276 so the paint will not overflow. Hope this helps!